mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-10-03 11:38:12 +08:00
Replace globals with editor environment (#3656)
Co-authored-by: Keavon Chambers <keavon@keavon.com>
This commit is contained in:
+3
-2
@@ -66,6 +66,7 @@ pub fn start() {
|
||||
}
|
||||
};
|
||||
|
||||
// Must be called before event loop initialization or native window integrations will break
|
||||
App::init();
|
||||
|
||||
let wgpu_context = futures::executor::block_on(gpu_context::create_wgpu_context());
|
||||
@@ -78,9 +79,9 @@ pub fn start() {
|
||||
|
||||
let cef_handler = cef::CefHandler::new(wgpu_context.clone(), app_event_scheduler.clone(), cef_view_info_receiver);
|
||||
let cef_context = match cef_context_builder.initialize(cef_handler, cli.disable_ui_acceleration) {
|
||||
Ok(c) => {
|
||||
Ok(context) => {
|
||||
tracing::info!("CEF initialized successfully");
|
||||
c
|
||||
context
|
||||
}
|
||||
Err(cef::InitError::AlreadyRunning) => {
|
||||
tracing::error!("Another instance is already running, Exiting.");
|
||||
|
||||
Reference in New Issue
Block a user