Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
0-don committed Jul 9, 2023
1 parent 9a08ece commit 2ccd3a7
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/utils/hotkeyRegister.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,10 @@ export async function registerHotkeys(hotkeys: Hotkey[]) {
const windowHotkey = hotkeys.find((h) => h.event === "window_display_toggle");
if (windowHotkey?.status && !(await isRegistered(windowHotkey.shortcut))) {
try {
await register(windowHotkey.shortcut, () =>
invoke("window_display_toggle")
);
await register(windowHotkey.shortcut, () => {
updateSidebarIcons("Recent Clipboards");
invoke("window_display_toggle");
});
} catch (_) {}
}

Expand Down

0 comments on commit 2ccd3a7

Please sign in to comment.