Tweak the first timing to check for updates
This commit is contained in:
@@ -411,8 +411,6 @@ app.on('ready', () => {
|
||||
upgradeAutoLaunch();
|
||||
}
|
||||
|
||||
autoUpdater.checkForUpdates();
|
||||
|
||||
if (global.isDev) {
|
||||
installExtension(REACT_DEVELOPER_TOOLS).
|
||||
then((name) => console.log(`Added Extension: ${name}`)).
|
||||
@@ -450,6 +448,9 @@ app.on('ready', () => {
|
||||
mainWindow.webContents.on('crashed', () => {
|
||||
throw new Error('webContents \'crashed\' event has been emitted');
|
||||
});
|
||||
mainWindow.on('ready-to-show', () => {
|
||||
autoUpdater.checkForUpdates();
|
||||
});
|
||||
|
||||
ipcMain.on('notified', () => {
|
||||
if (process.platform === 'win32' || process.platform === 'linux') {
|
||||
|
Reference in New Issue
Block a user