mirror of
https://github.com/Horizontal42/summarum.git
synced 2026-11-11 01:02:01 +03:00
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:
parent
bb6b08f153
commit
156ce447af
1 changed files with 1 additions and 1 deletions
|
|
@ -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());
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue