1
1
mirror of https://github.com/Fabio286/antares.git synced 2025-06-05 21:59:22 +02:00

feat: added macos basic shortcusts and menu

This commit is contained in:
Giulio Ganci
2021-10-24 13:02:37 +02:00
parent a35566f273
commit 430490ad93
3 changed files with 34 additions and 2 deletions

View File

@@ -0,0 +1,12 @@
import { ipcRenderer } from 'electron';
export default store => {
ipcRenderer.on('toggle-preferences', (event, error) => {
store.dispatch('application/showSettingModal', 'general');
});
ipcRenderer.on('open-updates-preferences', (event, error) => {
store.dispatch('application/showSettingModal', 'update');
ipcRenderer.send('check-for-updates');
});
};