File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -370,21 +370,20 @@ fn main() {
370370 warn ! ( "Failed to pre-build full window: {e}" ) ;
371371 }
372372
373- // If the app was cold-launched by a deep link the full view must open, not the tray.
374- let launched_by_deep_link = app_handle
375- . deep_link ( )
376- . get_current ( )
377- . ok ( )
378- . flatten ( )
379- . is_some ( ) ;
380-
381373 // Decide which window to show based on platform and available locations.
382374 #[ cfg( target_os = "linux" ) ]
383375 {
384376 let _ = WindowManager :: open_full_view ( app_handle) ;
385377 }
386378 #[ cfg( not( target_os = "linux" ) ) ]
387379 {
380+ // If the app was cold-launched by a deep link the full view must open, not the tray.
381+ let launched_by_deep_link = app_handle
382+ . deep_link ( )
383+ . get_current ( )
384+ . ok ( )
385+ . flatten ( )
386+ . is_some ( ) ;
388387 if launched_by_deep_link {
389388 info ! ( "App launched via deep link, opening full view directly." ) ;
390389 let _ = WindowManager :: open_full_view ( app_handle) ;
You can’t perform that action at this time.
0 commit comments