Commit 3067f4e8 authored by Amy Yan's avatar Amy Yan

added progress bar for status bar on downloads

parent 47d77e9f
......@@ -168,8 +168,8 @@ function download(url, fileName, cb) {
response.on("data", function(chunk) {
partiallength += chunk.length
console.log(partiallength / totallength)
ipcMain.emit('downloadProgress', partiallength / totallength)
win.setProgressBar(partiallength / totallength)
ipcMain.emit("downloadProgress", partiallength / totallength)
});
response.pipe(file);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment