You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
strum = { version = "0.26.3", features = ["derive"] }
158
161
dirs = "6.0"
162
+
cef = "138.5.0"
163
+
include_dir = "0.7.4"
164
+
tracing-subscriber = { version = "0.3.19", features = ["env-filter"] }
165
+
tracing = "0.1.41"
159
166
160
167
[profile.dev]
161
168
opt-level = 1
162
169
163
170
[profile.dev.package]
164
171
graphite-editor = { opt-level = 1 }
172
+
graphene-core-shaders = { opt-level = 1 }
165
173
graphene-core = { opt-level = 1 }
166
174
graphene-std = { opt-level = 1 }
167
175
interpreted-executor = { opt-level = 1 } # This is a mitigation for https://github.com/rustwasm/wasm-pack/issues/981 which is needed because the node_registry function is too large
Copy file name to clipboardExpand all lines: desktop/src/cef/context.rs
+9-3Lines changed: 9 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
use cef::sys::CEF_API_VERSION_LAST;
1
+
use cef::sys::{CEF_API_VERSION_LAST, cef_resultcode_t};
2
2
use cef::{App,BrowserSettings,Client,DictionaryValue,ImplBrowser,ImplBrowserHost,ImplCommandLine,RenderHandler,RequestContext,WindowInfo, browser_host_create_browser_sync, initialize};
3
3
use cef::{Browser,CefString,Settings, api_hash, args::Args, execute_process};
4
4
use thiserror::Error;
@@ -74,7 +74,11 @@ impl Context<Setup> {
74
74
75
75
let result = initialize(Some(self.args.as_main_args()),Some(&settings),Some(&mut cef_app), std::ptr::null_mut());
76
76
if result != 1{
77
-
returnErr(InitError::InitializationFailed);
77
+
let cef_exit_code = cef::get_exit_code()asu32;
78
+
if cef_exit_code == cef_resultcode_t::CEF_RESULT_CODE_NORMAL_EXIT_PROCESS_NOTIFIEDasu32{
0 commit comments