@@ -3,8 +3,8 @@ import { autoUpdater } from 'electron-updater'
3
3
import { t } from 'i18next'
4
4
5
5
import { icon } from './constants'
6
- import { logError , LogPrefix } from './logger/logger'
7
6
import { nativeImage } from 'electron'
7
+ import { logError , LogPrefix } from './logger/logger'
8
8
9
9
autoUpdater . autoDownload = false
10
10
autoUpdater . autoInstallOnAppQuit = false
@@ -47,12 +47,22 @@ autoUpdater.on('update-downloaded', async () => {
47
47
} )
48
48
49
49
autoUpdater . on ( 'error' , ( err ) => {
50
- dialog . showErrorBox (
51
- t ( 'box.error.update.title' , 'Update Error' ) ,
52
- t (
53
- 'box.error.update.message' ,
54
- 'Something went wrong with the update, please check the logs or try again later!'
55
- )
50
+ logError (
51
+ [
52
+ t ( 'box.error.update.title' , 'Update Error' ) ,
53
+ t (
54
+ 'box.error.update.message' ,
55
+ 'Something went wrong with the update, please check the logs or try again later!'
56
+ )
57
+ ] ,
58
+ LogPrefix . Backend
56
59
)
60
+ // dialog.showErrorBox(
61
+ // t('box.error.update.title', 'Update Error'),
62
+ // t(
63
+ // 'box.error.update.message',
64
+ // 'Something went wrong with the update, please check the logs or try again later!'
65
+ // )
66
+ // )
57
67
logError ( [ 'failed to update' , `${ err } ` ] , LogPrefix . Backend , false )
58
68
} )
0 commit comments