Tweak the first timing to check for updates

This commit is contained in:
Yuya Ochiai
2018-08-02 01:27:05 +09:00
parent 79f2faadba
commit a5311e7f72

View File

@@ -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') {