https://github.com/brave/browser-laptop/pull/9864#issue-240606194
BrowserWindow has a way to set progress which shows up in the tray. This is useful for downloading items. We should show the overall progress of all downloads in the try w/ BrowserWindow's setProgressBar
We should also set the electron.app.dock's dock.setBadge with the number of downloads that are active when > 0
Here's a great page for reference, for anyone wanting to tackle this :smile:
http://electron.atom.io/docs/tutorial/desktop-environment-integration/
Hi,
I'd like to attempt a PR for this.
I tried setting the setProgressBar to a hard coded value and I was able to set the progress bar of the icon in the taskbar. The place where I'm guessing we need to add this code is in electronDownloadItem.js inside the updateElectronDownloadItem().
But I'm unable to find the download percent at this location. I would appreciate some help with this.
Please let me know if I'm approaching this the wrong way.
Hey @bbondy and @bsclifton, I just submitted a PR #9864 for this
+1 from community https://community.brave.com/t/downloads-progress-meter/4550/3
Most helpful comment
Hey @bbondy and @bsclifton, I just submitted a PR #9864 for this