Skip to content
Snippets Groups Projects
Commit ef8fa0de authored by mathias.chouet's avatar mathias.chouet
Browse files

Update #250 add delay before notification, to prevent expose-effect in Gnome3

parent 30260e0c
No related branches found
No related tags found
No related merge requests found
......@@ -34,12 +34,12 @@ function createWindow () {
// Close the app.
win.on('close', () => {
// @TODO does not render properly on Linux
/* var choice = dialog.showMessageBox(this,
/* const choice = dialog.showMessageBox(this,
{
type: 'question',
buttons: ['Yes', 'No'],
title: 'Confirm',
message: 'Are you sure you want to quit?'
buttons: ['Certes', 'Fuque'],
title: 'Confirme-z-y voir',
message: "T'es-tu sûr de vouloir quitter, là ?"
}
);
if(choice == 1){
......@@ -119,7 +119,9 @@ const lookForUpdates = function() {
// ask system to open URL with default browser
shell.openExternal(latestVersionURL);
});
notif.show();
setTimeout(() => {
notif.show();
}, 2000);
}
} else {
console.error(`could not find download link for version ${data.latest} on platform ${platform}`);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment