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:
commit
45035eb2f2
1 changed files with 1 additions and 1 deletions
|
@ -1,6 +1,6 @@
|
||||||
const { remote } = require("electron");
|
const { remote } = require("electron");
|
||||||
const application = remote.app;
|
const application = remote.app;
|
||||||
const win = remote.BrowserWindow.getFocusedWindow();
|
const win = remote.getCurrentWindow();
|
||||||
|
|
||||||
const setProgressBar = progress => {
|
const setProgressBar = progress => {
|
||||||
win.setProgressBar(progress);
|
win.setProgressBar(progress);
|
||||||
|
|
Loading…
Add table
Reference in a new issue