diff options
Diffstat (limited to 'src/electron/ipc-api')
-rw-r--r-- | src/electron/ipc-api/settings.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/electron/ipc-api/settings.js b/src/electron/ipc-api/settings.js index 995b28fbd..00bdc0113 100644 --- a/src/electron/ipc-api/settings.js +++ b/src/electron/ipc-api/settings.js | |||
@@ -4,4 +4,12 @@ export default (params) => { | |||
4 | ipcMain.on('settings', (event, args) => { | 4 | ipcMain.on('settings', (event, args) => { |
5 | params.settings.set(args); | 5 | params.settings.set(args); |
6 | }); | 6 | }); |
7 | |||
8 | ipcMain.on('getAppSettings', () => { | ||
9 | params.mainWindow.webContents.send('appSettings', params.settings.all); | ||
10 | }); | ||
11 | |||
12 | ipcMain.on('updateAppSettings', (event, args) => { | ||
13 | params.settings.set(args); | ||
14 | }); | ||
7 | }; | 15 | }; |