From 156ce447afee37b8499258f5783ff8151b5fb0b4 Mon Sep 17 00:00:00 2001 From: Horizontal42 <75383519+Horizontal42@users.noreply.github.com> Date: Fri, 3 Jul 2026 13:15:04 +0300 Subject: [PATCH] fix: a boot-time hotkey registration failure was completely silent MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The manual rebind flow in Settings already toasts hotkeyFailed when a combo is taken by another app, but the initial registerHotkey() call at boot discarded its success/failure result — if the saved hotkey couldn't be registered (already bound elsewhere, etc.), there was no error and no indication the shortcut just wasn't active. --- src/main.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.ts b/src/main.ts index 2c0e90a..3dfe422 100644 --- a/src/main.ts +++ b/src/main.ts @@ -916,7 +916,7 @@ async function boot(): Promise { void onFileDrop((content) => newDoc(content)); - await registerHotkey(null, settings.hotkey); + if (!(await registerHotkey(null, settings.hotkey))) toast(t("hotkeyFailed")); if (settings.autostart) await applyAutostart(true); if (settings.alwaysOnTop) await applyAlwaysOnTop(true); void onAppQuit(() => flushAppData());