Skip to content

Commit bee4c3f

Browse files
Actual Fix
- Can I get this right?
1 parent e6136ac commit bee4c3f

1 file changed

Lines changed: 11 additions & 11 deletions

File tree

src/index.js

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,17 @@ const createWindow = () => {
2222
},
2323
});
2424

25+
mainWindow.once('ready-to-show', () => {
26+
if (app.isPackaged) {
27+
autoUpdater.setFeedURL({
28+
provider: 'github',
29+
owner: 'programmingKyle',
30+
repo: 'clocker',
31+
});
32+
autoUpdater.checkForUpdatesAndNotify();
33+
}
34+
});
35+
2536
// and load the index.html of the app.
2637
mainWindow.loadFile(path.join(__dirname, 'index.html'));
2738

@@ -51,17 +62,6 @@ app.on('activate', () => {
5162
}
5263
});
5364

54-
mainWindow.once('ready-to-show', () => {
55-
if (app.isPackaged) {
56-
autoUpdater.setFeedURL({
57-
provider: 'github',
58-
owner: 'programmingKyle',
59-
repo: 'clocker',
60-
});
61-
autoUpdater.checkForUpdatesAndNotify();
62-
}
63-
});
64-
6565
autoUpdater.on('checking-for-update', () => {
6666
mainWindow.webContents.send('auto-updater-callback', 'Checking for Update');
6767
});

0 commit comments

Comments
 (0)