OS X: Don't stop music when tabbing to another program (#423)

This commit is contained in:
Feross Aboukhadijeh
2016-04-18 17:17:32 -07:00
parent 5471760278
commit a3d685e132
2 changed files with 2 additions and 4 deletions

View File

@@ -79,4 +79,5 @@ function showApp () {
function hideApp () { function hideApp () {
windows.main.hide() windows.main.hide()
windows.main.send('dispatch', 'backToList')
} }

View File

@@ -114,13 +114,10 @@ function createMainWindow () {
} else if (!electron.app.isQuitting) { } else if (!electron.app.isQuitting) {
e.preventDefault() e.preventDefault()
win.hide() win.hide()
win.send('dispatch', 'backToList')
} }
}) })
win.on('hide', function () {
win.send('dispatch', 'backToList')
})
win.once('closed', function () { win.once('closed', function () {
windows.main = null windows.main = null
}) })