OS X: Bounce the Downloads stack when download completes

(If the download is inside the Downloads folder.)
This commit is contained in:
Feross Aboukhadijeh
2016-05-13 12:25:03 -07:00
parent 6589e134b3
commit 290a25c393
2 changed files with 14 additions and 2 deletions

View File

@@ -93,6 +93,13 @@ function init () {
windows.focusWindow(windows[windowName])
})
ipcMain.on('downloadFinished', function (e, filePath) {
if (app.dock) {
// Bounces the Downloads stack if the filePath is inside the Downloads folder.
app.dock.downloadFinished(filePath)
}
})
ipcMain.on('checkForVLC', function (e) {
vlc.checkForVLC(function (isInstalled) {
windows.main.send('checkForVLC', isInstalled)