Skip to content

Commit

Permalink
Merge pull request #185 from Nothing-Works/fix/get-all-shortcuts
Browse files Browse the repository at this point in the history
fix get-all-shortcuts error
  • Loading branch information
manojVivek authored Jun 10, 2020
2 parents 5598529 + 43a847b commit 8091fcc
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 8091fcc

Please sign in to comment.