Skip to content

Commit 6ce486d

Browse files
committed
Add update check when closing electron app
1 parent 409701f commit 6ce486d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

desktop/app.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,7 @@ module.exports = function main() {
184184
// tell the app to check for unsynchronized notes.
185185
mainWindow.on('close', (event) => {
186186
if (isAuthenticated) {
187+
setTimeout(updater.ping.bind(updater), config.updater.delay);
187188
event.preventDefault();
188189
mainWindow.webContents.send('appCommand', { action: 'closeWindow' });
189190
}

0 commit comments

Comments
 (0)