Skip to content

Commit

Permalink
fix get-all-shortcuts error
Browse files Browse the repository at this point in the history
fix get-all-shortcuts by adding removeHandler method
  • Loading branch information
Nothing-Works authored Jun 10, 2020
1 parent 5598529 commit 43a847b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion desktop-app/app/shortcut-manager/main-shortcut-manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,12 @@ export function initMainShortcutManager() {
const ok = unregisterShortcut(id);
event.reply(UNREGISTER_REPLY_CHANNEL, { ok, id });
});

ipcMain.removeHandler(GET_ALL_CHANNEL);

ipcMain.handle(GET_ALL_CHANNEL, () => {
return getAllShortcuts();
});

ipcMain.on(CLEAR_CHANNEL, clearAllShortcuts);
}
}

0 comments on commit 43a847b

Please sign in to comment.