From 03a4e345d1457f469fecef8622f9177e59ec89b3 Mon Sep 17 00:00:00 2001 From: Quentin Legot Date: Sat, 20 Aug 2022 11:16:06 +0200 Subject: [PATCH] Removed dialog when update downloaded --- src/server/updater.js | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/src/server/updater.js b/src/server/updater.js index 6a77aaf..523b6f6 100644 --- a/src/server/updater.js +++ b/src/server/updater.js @@ -31,20 +31,9 @@ class Updater { // TODO : replace dialog by automatic restart this.autoUpdater.on('update-downloaded', (_event, releaseNotes, releaseName) => { - const dialogOpts = { - type: 'info', - buttons: ['Rédémarrer', 'Plus tard'], - title: 'Une mise à jour du launcher est disponible', - message: process.platform === 'win32' ? releaseNotes : releaseName, - detail: 'Une nouvelle version du launcher a été téléchargé. Redémarrez l\'application pour appliquer les mises à jour.' - } - - this.dialog.showMessageBox(dialogOpts).then((returnValue) => { - if (returnValue.response === 0) { - this.logger.info("Leaving application to install update...") - this.autoUpdater.quitAndInstall() - } - }) + this.logger.info(`update downloaded ${releaseName}`) + this.logger.info("Leaving application to install update...") + this.autoUpdater.quitAndInstall() }) }