Skip to content
This repository has been archived by the owner on Oct 23, 2023. It is now read-only.

Commit

Permalink
fix(auto-updater): correct value for progress bar and reset progress bar
Browse files Browse the repository at this point in the history
  • Loading branch information
Jumace authored and lkuechler committed Dec 22, 2017
1 parent e024cc4 commit 153806c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/electron/auto-updater.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,13 @@ export function checkForUpdates(win: BrowserWindow): void {
});

autoUpdater.on('download-progress', progressObj => {
win.setProgressBar(progressObj.percent);
win.setProgressBar(progressObj.percent / 100);
});

autoUpdater.on('update-downloaded', info => {
dialog.showMessageBox({ message: 'Update downloaded. Will be installed on next restart' });

// remove progress bar
win.setProgressBar(-1);
});
}

0 comments on commit 153806c

Please sign in to comment.