From 1e0c4cc5cdea3fa06f441f41603c6f7020e51356 Mon Sep 17 00:00:00 2001 From: Mats Estensen Date: Sun, 24 Feb 2019 11:54:50 +0100 Subject: [PATCH] Desktop: Add type 'info' and 'OK' button to update dialog when version up-to-date (#1148) * Add type 'info' and 'OK' button to update dialogue when current version is up to date * remove whitespace and fix space to tabs * remove created newline at end of file --- ElectronClient/app/checkForUpdates.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ElectronClient/app/checkForUpdates.js b/ElectronClient/app/checkForUpdates.js index 4018bd077f..9730c5503a 100644 --- a/ElectronClient/app/checkForUpdates.js +++ b/ElectronClient/app/checkForUpdates.js @@ -120,7 +120,11 @@ function checkForUpdates(inBackground, window, logFilePath, options) { autoUpdateLogger_.info('Is Pre-release:', release.prerelease); if (compareVersions(release.version, packageInfo.version) <= 0) { - if (!checkInBackground_) dialog.showMessageBox({ message: _('Current version is up-to-date.') }) + if (!checkInBackground_) dialog.showMessageBox({ + type: 'info', + message: _('Current version is up-to-date.'), + buttons: [_('OK')], + }) } else { const releaseNotes = release.notes.trim() ? "\n\n" + release.notes.trim() : ''; const newVersionString = release.prerelease ? _('%s (pre-release)', release.version) : release.version;