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: separate open app and settings tray menu actions (#2918)

Divanshu1d6edc7c159a
diff --git a/apps/screenpipe-app-tauri/src-tauri/src/tray.rs b/apps/screenpipe-app-tauri/src-tauri/src/tray.rs
index d60867ca7..593c303b4 100644
--- a/apps/screenpipe-app-tauri/src-tauri/src/tray.rs
+++ b/apps/screenpipe-app-tauri/src-tauri/src/tray.rs
@@ -364,7 +364,7 @@ fn create_dynamic_menu(
// --- Open screenpipe ---
menu_builder = menu_builder
- .item(&MenuItemBuilder::with_id("settings_top", "Open screenpipe").build(app)?)
+ .item(&MenuItemBuilder::with_id("open_app", "Open screenpipe").build(app)?)
.item(&PredefinedMenuItem::separator(app)?);
// --- Primary actions (most-used first) ---
@@ -776,7 +776,13 @@ fn handle_menu_event(app_handle: &AppHandle, event: tauri::menu::MenuEvent) {
}
});
}
- "settings" | "settings_top" => {
+ "open_app" => {
+ let app = app_handle.clone();
+ let _ = app_handle.run_on_main_thread(move || {
+ let _ = ShowRewindWindow::Home { page: None }.show(&app);
+ });
+ }
+ "settings" => {
let app = app_handle.clone();
let page = Some("general".to_string());
let _ = app_handle.run_on_main_thread(move || {