disable maximize button on PiP

(doesn't work if `in-app-menu` is enabled)
This commit is contained in:
Araxeus
2023-01-12 19:53:17 +02:00
parent f9820df6c6
commit b3f561cf2f

View File

@ -47,6 +47,7 @@ const togglePiP = async () => {
win.webContents.on("before-input-event", blockShortcutsInPiP);
win.setMaximizable(false);
win.setFullScreenable(false);
runAdaptors();
@ -62,6 +63,7 @@ const togglePiP = async () => {
}
} else {
win.webContents.removeListener("before-input-event", blockShortcutsInPiP);
win.setMaximizable(true);
win.setFullScreenable(true);
runAdaptors();