OS X: Don't stop music when tabbing to another program (#423)
This commit is contained in:
@@ -79,4 +79,5 @@ function showApp () {
|
||||
|
||||
function hideApp () {
|
||||
windows.main.hide()
|
||||
windows.main.send('dispatch', 'backToList')
|
||||
}
|
||||
|
||||
@@ -114,13 +114,10 @@ function createMainWindow () {
|
||||
} else if (!electron.app.isQuitting) {
|
||||
e.preventDefault()
|
||||
win.hide()
|
||||
win.send('dispatch', 'backToList')
|
||||
}
|
||||
})
|
||||
|
||||
win.on('hide', function () {
|
||||
win.send('dispatch', 'backToList')
|
||||
})
|
||||
|
||||
win.once('closed', function () {
|
||||
windows.main = null
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user