mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-23 13:38:12 +08:00
Desktop: Use the OS temp directory for CEF caches (#4030)
* Desktop: Use the OS temp dir * Review
This commit is contained in:
@@ -54,7 +54,12 @@ impl CefContext for MultiThreadedCefContextProxy {
|
||||
impl Drop for MultiThreadedCefContextProxy {
|
||||
fn drop(&mut self) {
|
||||
// Force dropping underlying context on the UI thread
|
||||
run_on_ui_thread(move || drop(CONTEXT.take()));
|
||||
let (sync_drop_tx, sync_drop_rx) = std::sync::mpsc::channel();
|
||||
run_on_ui_thread(move || {
|
||||
drop(CONTEXT.take());
|
||||
let _ = sync_drop_tx.send(());
|
||||
});
|
||||
let _ = sync_drop_rx.recv();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user