fix: a boot-time hotkey registration failure was completely silent

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.
This commit is contained in:
Horizontal42 2026-07-03 13:15:04 +03:00
parent bb6b08f153
commit 156ce447af

View file

@ -916,7 +916,7 @@ async function boot(): Promise<void> {
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());