From 781fed0379be42487ba091c7d6df4528ff847138 Mon Sep 17 00:00:00 2001 From: xiaozhu188 <809057480@qq.com> Date: Tue, 3 Mar 2020 21:40:19 +0800 Subject: [PATCH] Fix: show percent of downloading correctly --- src/main/modules/ipcEvent.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/modules/ipcEvent.js b/src/main/modules/ipcEvent.js index 7aed9fa..1621e98 100644 --- a/src/main/modules/ipcEvent.js +++ b/src/main/modules/ipcEvent.js @@ -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() }) }