From 3cdb235654e79acbb18c1d02257ca16503764d9d Mon Sep 17 00:00:00 2001 From: Maigo Erit Date: Sun, 15 Mar 2020 22:14:32 +0200 Subject: [PATCH] v3.13.9 show alert for updating application. --- electron/app/app-updater.ts | 10 ++++++---- electron/package.json | 2 +- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/electron/app/app-updater.ts b/electron/app/app-updater.ts index fa77d017..2d84fbca 100644 --- a/electron/app/app-updater.ts +++ b/electron/app/app-updater.ts @@ -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); diff --git a/electron/package.json b/electron/package.json index 78a7558a..6b3e9bc2 100644 --- a/electron/package.json +++ b/electron/package.json @@ -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 ", "license": "GPL-2.0",