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
Rust agentsagiaiai-memoryaudio-recordingcomputer-visionhermeshermes-agentllmlocal-ailocal-firstmachine-learningmcpmultimodalopenclawprivacyrewindscreen-recordingspeech-to-textycombinator
fix: tray menu items firing twice (double handler registration)
Louis Beaumont9e15126577cd
diff --git a/apps/screenpipe-app-tauri/src-tauri/src/tray.rs b/apps/screenpipe-app-tauri/src-tauri/src/tray.rsindex 937ff5f5e..2800dcfa7 100644--- a/apps/screenpipe-app-tauri/src-tauri/src/tray.rs+++ b/apps/screenpipe-app-tauri/src-tauri/src/tray.rs@@ -115,8 +115,9 @@ pub fn recreate_tray(app: &AppHandle) {if let Ok(menu) = create_dynamic_menu(&app, &MenuState::default(), &update_item) {let _ = new_tray.set_menu(Some(menu));}- // Setup click handlers- let _ = setup_tray_click_handlers(&new_tray);+ // NOTE: do NOT re-register click handlers here.+ // The handler from setup_tray() is keyed by tray ID and persists+ // across tray icon recreation. Re-registering causes double-firing.// Set autosaveName so macOS remembers user's Cmd+drag positionset_autosave_name();