Fix video and audio playback to pause on window close
This commit is contained in:
parent
d215e1b9be
commit
96131112da
9 changed files with 98 additions and 1 deletions
|
@ -239,6 +239,16 @@ ipc.on('power-channel:lock-screen', () => {
|
|||
window.Whisper.events.trigger('powerMonitorLockScreen');
|
||||
});
|
||||
|
||||
ipc.on(
|
||||
'set-media-playback-disabled',
|
||||
(_event: unknown, playbackDisabled: unknown) => {
|
||||
const { setMediaPlaybackDisabled } = window.Events || {};
|
||||
if (setMediaPlaybackDisabled) {
|
||||
setMediaPlaybackDisabled(Boolean(playbackDisabled));
|
||||
}
|
||||
}
|
||||
);
|
||||
|
||||
ipc.on('window:set-window-stats', (_event, stats) => {
|
||||
if (!window.reduxActions) {
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue