This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const win = new electron.BrowserWindow(...) | |
// When work makes progress, show the progress bar | |
function onProgress (progress) { | |
// Use values 0 to 1, or -1 to hide the progress bar | |
win.setProgressBar(progress || -1) // Progress bar works on all platforms | |
} | |
// When work completes while the app is in the background, show a badge | |
var numDoneInBackground = 0 |