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: shortcut disable toggle now actually disables shortcuts

Louis Beaumont0ffc72b2ef06
diff --git a/apps/screenpipe-app-tauri/src-tauri/src/main.rs b/apps/screenpipe-app-tauri/src-tauri/src/main.rs
index cae005533..5eb64c463 100755
--- a/apps/screenpipe-app-tauri/src-tauri/src/main.rs
+++ b/apps/screenpipe-app-tauri/src-tauri/src/main.rs
@@ -293,7 +293,21 @@ impl ShortcutConfig {
}
fn is_disabled(&self, shortcut_type: &str) -> bool {
+ // The Rust side uses short keys like "show", "start_recording", etc.
+ // but the frontend stores camelCase names like "showScreenpipeShortcut",
+ // "startRecordingShortcut", etc. Check both forms.
+ let frontend_key = match shortcut_type {
+ "show" => "showScreenpipeShortcut",
+ "start_recording" => "startRecordingShortcut",
+ "stop_recording" => "stopRecordingShortcut",
+ "start_audio" => "startAudioShortcut",
+ "stop_audio" => "stopAudioShortcut",
+ "show_chat" => "showChatShortcut",
+ "search" => "searchShortcut",
+ _ => shortcut_type,
+ };
self.disabled.contains(&shortcut_type.to_string())
+ || self.disabled.contains(&frontend_key.to_string())
}
}