File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed
Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -132,8 +132,7 @@ fn setup_window(handle: &tauri::AppHandle) -> Result<(), Box<dyn std::error::Err
132132 #[ allow( unused_variables) ]
133133 let app_handle = handle. clone ( ) ;
134134 tokio:: task:: spawn ( async move {
135- if let Ok ( state) = State :: get ( ) . await {
136- let _settings = state. settings . read ( ) . await ;
135+ if State :: get ( ) . await . is_ok ( ) {
137136 // native_window_frame=true means use native decorations
138137 // native_window_frame=false means use custom frame (no decorations)
139138 #[ cfg( target_os = "macos" ) ]
Original file line number Diff line number Diff line change @@ -131,7 +131,8 @@ fn setup_window(handle: &tauri::AppHandle) -> Result<(), Box<dyn std::error::Err
131131 let app_handle = handle. clone ( ) ;
132132 tokio:: task:: spawn ( async move {
133133 if let Ok ( state) = State :: get ( ) . await {
134- let _settings = state. settings . read ( ) . await ;
134+ #[ allow( unused_variables) ]
135+ let settings = state. settings . read ( ) . await ;
135136 // native_window_frame=true means use native decorations
136137 // native_window_frame=false means use custom frame (no decorations)
137138 #[ cfg( target_os = "macos" ) ]
@@ -171,9 +172,7 @@ fn setup_window(handle: &tauri::AppHandle) -> Result<(), Box<dyn std::error::Err
171172 }
172173
173174 #[ cfg( not( target_os = "macos" ) ) ]
174- win_clone
175- . set_decorations ( _settings. native_window_frame )
176- . ok ( ) ;
175+ win_clone. set_decorations ( settings. native_window_frame ) . ok ( ) ;
177176 }
178177 win_clone. show ( ) . ok ( ) ;
179178 } ) ;
You can’t perform that action at this time.
0 commit comments