Skip to content

Commit

Permalink
3.13.19
Browse files Browse the repository at this point in the history
  • Loading branch information
Maigo Erit committed May 13, 2020
1 parent 5ba8621 commit 2fe3f09
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 @@ -4,12 +4,14 @@ import config from './config';
import { showNotification } from './notification';

import { logManager } from './log-manager';
import WindowManager, { windowManager } from './window-manager';
import WindowManager from './window-manager';

const logger = logManager.getLogger('AppUpdater');

const ONE_MINUTE_MS = 60 * 1000;
export const CHECK_INTERVAL_MS = ONE_MINUTE_MS * 30;
const ONE_HOUR_MS = 60 * ONE_MINUTE_MS;

export const CHECK_INTERVAL_MS = ONE_HOUR_MS * 24;

function isNetworkError(errorObject) {
return errorObject.message.includes('net::ERR');
Expand All @@ -34,8 +36,8 @@ export default class AppUpdater {
});
});

autoUpdater.on('update-downloaded', async () => {
logger.debug('Update downloaded');
autoUpdater.on('update-downloaded', async (info: UpdateInfo) => {
logger.debug(`Downloaded Tockler version ${info.version}`);

if (!AppUpdater.dialogIsOpen) {
AppUpdater.dialogIsOpen = true;
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.18",
"version": "3.13.19",
"description": "Automatically track applications usage and working time",
"author": "Maigo Erit <[email protected]>",
"license": "GPL-2.0",
Expand Down

0 comments on commit 2fe3f09

Please sign in to comment.