Release media keys when opening external player (#1237)

This commit is contained in:
Adam Gotlib
2021-09-22 18:07:00 -07:00
committed by GitHub
parent e9d72ebb17
commit 5619f1805b

View File

@@ -200,9 +200,11 @@ function init () {
ipcMain.on('openExternalPlayer', (e, ...args) => {
const externalPlayer = require('./external-player')
const shortcuts = require('./shortcuts')
const thumbar = require('./thumbar')
menu.togglePlaybackControls(false)
shortcuts.disable()
thumbar.disable()
externalPlayer.spawn(...args)
})