mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-10 10:11:46 +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.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();
|
||||
|
||||
Reference in New Issue
Block a user