mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-11 10:31:47 +00:00
disable maximize button on PiP
(doesn't work if `in-app-menu` is enabled)
This commit is contained in:
@ -47,6 +47,7 @@ const togglePiP = async () => {
|
|||||||
|
|
||||||
win.webContents.on("before-input-event", blockShortcutsInPiP);
|
win.webContents.on("before-input-event", blockShortcutsInPiP);
|
||||||
|
|
||||||
|
win.setMaximizable(false);
|
||||||
win.setFullScreenable(false);
|
win.setFullScreenable(false);
|
||||||
|
|
||||||
runAdaptors();
|
runAdaptors();
|
||||||
@ -62,6 +63,7 @@ const togglePiP = async () => {
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
win.webContents.removeListener("before-input-event", blockShortcutsInPiP);
|
win.webContents.removeListener("before-input-event", blockShortcutsInPiP);
|
||||||
|
win.setMaximizable(true);
|
||||||
win.setFullScreenable(true);
|
win.setFullScreenable(true);
|
||||||
|
|
||||||
runAdaptors();
|
runAdaptors();
|
||||||
|
|||||||
Reference in New Issue
Block a user