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