Skip to content

Commit

Permalink
Always visible to version information
Browse files Browse the repository at this point in the history
  • Loading branch information
sokcuri committed Oct 6, 2017
1 parent 69eaa4e commit 14b7162
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -621,11 +621,10 @@ app.on('ready', () => {
if (err) {
// error check
win.webContents.send('toast-message', 'Update check failed');
return ;
}

const current = VERSION.value;
if (versionCompare(current, latest) < 0) {
if (!err && versionCompare(current, latest) < 0) {
win.webContents.send('toast-message', 'Update required: newest version is ' + latest);
}
win.webContents.send('toast-message', VERSION.message);
Expand Down

0 comments on commit 14b7162

Please sign in to comment.