From 545eb62a0749f194d329c6117f42ea99dd007bb5 Mon Sep 17 00:00:00 2001 From: Patrick Delorme Date: Wed, 26 Nov 2025 23:06:47 -0500 Subject: [PATCH] Closes main window when settings open Ensures that the main window is closed, rather than hidden, when the settings window is opened. This prevents potential issues related to device usage and improves the overall user experience. --- apps/desktop/src-tauri/src/windows.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/desktop/src-tauri/src/windows.rs b/apps/desktop/src-tauri/src/windows.rs index 12cde9fef2..ce69fcdeba 100644 --- a/apps/desktop/src-tauri/src/windows.rs +++ b/apps/desktop/src-tauri/src/windows.rs @@ -380,7 +380,7 @@ impl ShowCapWindow { window } Self::Settings { page } => { - // Hide main window and target select overlays when settings window opens + // Close main window and target select overlays when settings window opens for (label, window) in app.webview_windows() { if let Ok(id) = CapWindowId::from_str(&label) && matches!( @@ -390,7 +390,7 @@ impl ShowCapWindow { | CapWindowId::Camera ) { - let _ = window.hide(); + let _ = window.close(); } }