diff --git a/main.js b/main.js index 65838ad8d97197285b3c5ad63096913acd8b93f3..f61100f23087835ae072dbc76989bc40408a0b9d 100644 --- a/main.js +++ b/main.js @@ -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}`);