There was an error while loading. Please reload this page.
1 parent c357576 commit 70e85c9Copy full SHA for 70e85c9
1 file changed
packages/neuron-wallet/src/controllers/update.ts
@@ -6,12 +6,15 @@ autoUpdater.autoDownload = false
6
7
let updaterMenuItem: MenuItem | null
8
const enableUpdaterMenuItem = () => {
9
- updaterMenuItem!.enabled = true
+ if (updaterMenuItem) {
10
+ updaterMenuItem.enabled = true
11
+ }
12
updaterMenuItem = null
13
}
14
15
autoUpdater.on('error', error => {
16
dialog.showErrorBox('Error', error == null ? 'unknown' : (error.stack || error).toString())
17
+ enableUpdaterMenuItem()
18
})
19
20
autoUpdater.on('update-available', () => {
0 commit comments