diff options
author | 2023-05-24 06:57:50 +0530 | |
---|---|---|
committer | 2023-05-24 16:40:43 +0530 | |
commit | e245b4fa229bee1e2ab97fcb42de3831b8bdbe5b (patch) | |
tree | d684777b3fde5470c9f99304a9f022422ffb8045 /src/electron/ipc-api/autoUpdate.ts | |
parent | 6.3.0-nightly.9 [skip ci] (diff) | |
download | ferdium-app-e245b4fa229bee1e2ab97fcb42de3831b8bdbe5b.tar.gz ferdium-app-e245b4fa229bee1e2ab97fcb42de3831b8bdbe5b.tar.zst ferdium-app-e245b4fa229bee1e2ab97fcb42de3831b8bdbe5b.zip |
Upgrade npm modules
Diffstat (limited to 'src/electron/ipc-api/autoUpdate.ts')
-rw-r--r-- | src/electron/ipc-api/autoUpdate.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/electron/ipc-api/autoUpdate.ts b/src/electron/ipc-api/autoUpdate.ts index bf3e79c85..14214aacb 100644 --- a/src/electron/ipc-api/autoUpdate.ts +++ b/src/electron/ipc-api/autoUpdate.ts | |||
@@ -7,10 +7,7 @@ const debug = require('../../preload-safe-debug')('Ferdium:ipcApi:autoUpdate'); | |||
7 | export default (params: { mainWindow: BrowserWindow; settings: any }) => { | 7 | export default (params: { mainWindow: BrowserWindow; settings: any }) => { |
8 | const enableUpdate = Boolean(params.settings.app.get('automaticUpdates')); | 8 | const enableUpdate = Boolean(params.settings.app.get('automaticUpdates')); |
9 | 9 | ||
10 | if (!enableUpdate) { | 10 | if (enableUpdate) { |
11 | autoUpdater.autoInstallOnAppQuit = false; | ||
12 | autoUpdater.autoDownload = false; | ||
13 | } else { | ||
14 | ipcMain.on('autoUpdate', (event, args) => { | 11 | ipcMain.on('autoUpdate', (event, args) => { |
15 | if (enableUpdate) { | 12 | if (enableUpdate) { |
16 | try { | 13 | try { |
@@ -71,5 +68,8 @@ export default (params: { mainWindow: BrowserWindow; settings: any }) => { | |||
71 | debug('update-error'); | 68 | debug('update-error'); |
72 | params.mainWindow.webContents.send('autoUpdate', { error }); | 69 | params.mainWindow.webContents.send('autoUpdate', { error }); |
73 | }); | 70 | }); |
71 | } else { | ||
72 | autoUpdater.autoInstallOnAppQuit = false; | ||
73 | autoUpdater.autoDownload = false; | ||
74 | } | 74 | } |
75 | }; | 75 | }; |