Skip to content

Commit

Permalink
v3.13.9 show alert for updating application.
Browse files Browse the repository at this point in the history
  • Loading branch information
Maigo Erit committed Mar 15, 2020
1 parent 7e7658f commit 3cdb235
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
10 changes: 6 additions & 4 deletions electron/app/app-updater.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,12 @@ export default class AppUpdater {
logger.debug(`Update result ${latestVersion}`);
const currentVersionString = app.getVersion();

showNotification({
body: `Up to date! Current ${currentVersionString} (latest: ${latestVersion})`,
silent: true,
});
if (currentVersionString === latestVersion) {
showNotification({
body: `Up to date! You have version ${currentVersionString}`,
silent: true,
});
}
}
} catch (e) {
logger.error('Error checking updates', e);
Expand Down
2 changes: 1 addition & 1 deletion electron/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tockler",
"version": "3.13.8",
"version": "3.13.9",
"description": "Automatically track applications usage and working time",
"author": "Maigo Erit <[email protected]>",
"license": "GPL-2.0",
Expand Down

0 comments on commit 3cdb235

Please sign in to comment.