Skip to content

Commit

Permalink
3.3.10 more logging
Browse files Browse the repository at this point in the history
  • Loading branch information
MayGo committed Jun 20, 2018
1 parent 159c114 commit 23a62c8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions electron/app/app-updater.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export default class AppUpdater {

autoUpdater.logger = logger;
autoUpdater.on('download-progress', progressInfo => {
showNotification(`Downloaded: {progressInfo.percent}% `, 'Tockler downloading');
showNotification(`Downloaded: ${progressInfo.percent}% `, 'Tockler update downloading');
});
autoUpdater.on('error', err => {
showNotification(err ? err.stack || err : 'unknown', 'Tockler error');
Expand All @@ -44,7 +44,8 @@ export default class AppUpdater {
logger.info('Checking for updates');

autoUpdater.on('update-not-available', AppUpdater.updateNotAvailable);
await autoUpdater.checkForUpdatesAndNotify();
const result: UpdateCheckResult = await autoUpdater.checkForUpdatesAndNotify();
logger.info(`Update result ${result.updateInfo.version}`);
autoUpdater.removeListener('update-not-available', AppUpdater.updateNotAvailable);
}
}
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.3.9",
"version": "3.3.10",
"description": "Automatically track applications usage and working time",
"author": "Maigo Erit <maigo.erit@gmail.com>",
"license": "GPL-2.0",
Expand Down

0 comments on commit 23a62c8

Please sign in to comment.