Skip to content

Commit

Permalink
Desktop: Add type 'info' and 'OK' button to update dialog when versio…
Browse files Browse the repository at this point in the history
…n 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
  • Loading branch information
matsest authored and laurent22 committed Feb 24, 2019
1 parent b40ccc7 commit 1e0c4cc
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ElectronClient/app/checkForUpdates.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 1e0c4cc

Please sign in to comment.