Skip to content

Commit

Permalink
Fix: show percent of downloading correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaozhu188 committed Mar 3, 2020
1 parent 5174938 commit 781fed0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/modules/ipcEvent.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ export default function () {
onProgress (progress) {
global.mainWindow.webContents.send('download-onProgress', {
id: args.id,
progress: progress * 100,
progress: progress.percent * 100,
state: downloads[args.id].getState()
})
}
Expand Down

0 comments on commit 781fed0

Please sign in to comment.