commit 4c1b8cc90444c1952e56726c16a9510d714d5ef5
parent 7ef4e0ae981db9be9c3b6c537989daa64088cb9c
Author: MTRNord <mtrnord1@gmail.com>
Date: Sun, 28 Aug 2016 18:40:01 +0200
Fixed Autoupdater
Diffstat:
1 file changed, 13 insertions(+), 12 deletions(-)
diff --git a/app/main.js b/app/main.js
@@ -10,19 +10,20 @@ function update () {
autoUpdater.on('update-downloaded', function (event, releaseNotes, releaseName, releaseDate, updateUrl, quitAndUpdate) {
- var index = dialog.showMessageBox(mainWindow, {
- type: 'info',
- buttons: [i18n.__('Restart'), i18n.__('Later')],
- title: "Typetalk",
- message: i18n.__('The new version has been downloaded. Please restart the application to apply the updates.'),
- detail: releaseName + "\n\n" + releaseNotes
- });
-
- if (index === 1) {
- return;
+ var index = dialog.showMessageBox(mainWindow, {
+ type: 'info',
+ buttons: [i18n.__('Restart'), i18n.__('Later')],
+ title: "Typetalk",
+ message: i18n.__('The new version has been downloaded. Please restart the application to apply the updates.'),
+ detail: releaseName + "\n\n" + releaseNotes
+ });
+
+ if (index === 1) {
+ return;
+ }
+
+ quitAndUpdate();
}
-
- quitAndUpdate();
}
function createWindow () {