Skip to content

YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context

fix(windows): close Settings when showing Main overlay via shortcut

louis03019519b494369875
diff --git a/screenpipe-app-tauri/src-tauri/src/commands.rs b/screenpipe-app-tauri/src-tauri/src/commands.rs
index 156dbf37d..e85c26193 100644
--- a/screenpipe-app-tauri/src-tauri/src/commands.rs
+++ b/screenpipe-app-tauri/src-tauri/src/commands.rs
@@ -28,6 +28,11 @@ pub fn set_tray_health_icon(app_handle: tauri::AppHandle) {
#[specta::specta]
pub fn show_main_window(app_handle: &tauri::AppHandle, _overlay: bool) {
info!("show_main_window called, attempting to show Main window");
+
+ // Close Settings window if open to avoid confusion (Main overlay is transparent
+ // and Settings would show through, making it look like Settings is being toggled)
+ let _ = ShowRewindWindow::Settings { page: None }.close(app_handle);
+
match ShowRewindWindow::Main.show(app_handle) {
Ok(window) => {
info!("ShowRewindWindow::Main.show succeeded, window label: {}", window.label());