Skip to content

Commit

Permalink
Add update check when closing electron app
Browse files Browse the repository at this point in the history
  • Loading branch information
sandymcfadden committed May 24, 2021
1 parent 409701f commit 6ce486d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions desktop/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@ module.exports = function main() {
// tell the app to check for unsynchronized notes.
mainWindow.on('close', (event) => {
if (isAuthenticated) {
setTimeout(updater.ping.bind(updater), config.updater.delay);
event.preventDefault();
mainWindow.webContents.send('appCommand', { action: 'closeWindow' });
}
Expand Down

0 comments on commit 6ce486d

Please sign in to comment.