Merge pull request #327 from lbryio/progress-bar-fix

Stop progress bar code blowing up if window is defocused before download starts
This commit is contained in:
Jeremy Kauffman 2017-07-04 13:03:15 -04:00 committed by GitHub
commit 45035eb2f2

View file

@ -1,6 +1,6 @@
const { remote } = require("electron");
const application = remote.app;
const win = remote.BrowserWindow.getFocusedWindow();
const win = remote.getCurrentWindow();
const setProgressBar = progress => {
win.setProgressBar(progress);