Skip to content

Commit aee90c6

Browse files
Update defguard-client.rs
1 parent e08c416 commit aee90c6

1 file changed

Lines changed: 7 additions & 8 deletions

File tree

src-tauri/src/bin/defguard-client.rs

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff 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);

0 commit comments

Comments
 (0)