Skip to content

Commit

Permalink
Avoid check update error message
Browse files Browse the repository at this point in the history
  • Loading branch information
mantou132 committed Aug 23, 2022
1 parent 698e33a commit 0b03d23
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/main/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,11 @@ if (!gotTheLock) {

let tray: Tray;
app.on('ready', () => {
if (settings.enableUpdateCheck === 'on') autoUpdater.checkForUpdatesAndNotify();
if (settings.enableUpdateCheck === 'on') {
autoUpdater.checkForUpdatesAndNotify().catch(() => {
//
});
}

const window = new Window();
tray = new GtTray(path.resolve(__public, '[email protected]'), window);
Expand Down

0 comments on commit 0b03d23

Please sign in to comment.