@@ -48,7 +48,6 @@ pub(crate) struct App {
4848 #[ cfg_attr( not( target_os = "macos" ) , expect( unused) ) ]
4949 preferences : Preferences ,
5050 launch_documents : Option < Vec < PathBuf > > ,
51- disable_ui_acceleration : bool ,
5251 startup_time : Option < Instant > ,
5352 exiting : Arc < AtomicBool > ,
5453 exit_reason : ExitReason ,
@@ -68,7 +67,6 @@ impl App {
6867 app_event_scheduler : AppEventScheduler ,
6968 preferences : Preferences ,
7069 launch_documents : Vec < PathBuf > ,
71- disable_ui_acceleration : bool ,
7270 ) -> Self {
7371 let ctrlc_app_event_scheduler = app_event_scheduler. clone ( ) ;
7472 ctrlc:: set_handler ( move || {
@@ -119,7 +117,6 @@ impl App {
119117 web_communication_startup_buffer : Vec :: new ( ) ,
120118 preferences,
121119 launch_documents : Some ( launch_documents) ,
122- disable_ui_acceleration,
123120 startup_time : None ,
124121 exiting,
125122 exit_reason : ExitReason :: Shutdown ,
@@ -312,7 +309,7 @@ impl App {
312309 }
313310 DesktopFrontendMessage :: OpenLaunchDocuments => {
314311 let Some ( launch_documents) = std:: mem:: take ( & mut self . launch_documents ) else {
315- tracing:: error!( "OpenLaunchDocuments should only be send once" ) ;
312+ tracing:: error!( "OpenLaunchDocuments should only be sent once" ) ;
316313 return ;
317314 } ;
318315 self . open_files ( launch_documents) ;
@@ -589,7 +586,7 @@ impl ApplicationHandler for App {
589586 }
590587
591588 if !self . cef_init_successful
592- && !self . disable_ui_acceleration
589+ && !self . preferences . disable_ui_acceleration
593590 && self . web_communication_initialized
594591 && let Some ( startup_time) = self . startup_time
595592 && startup_time. elapsed ( ) > Duration :: from_secs ( 3 )
0 commit comments