mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-11 10:31:47 +00:00
fix: sync pip and index.js options
This commit is contained in:
4
index.js
4
index.js
@ -175,7 +175,9 @@ function createMainWindow() {
|
|||||||
win.webContents.loadURL(urlToLoad);
|
win.webContents.loadURL(urlToLoad);
|
||||||
win.on("closed", onClosed);
|
win.on("closed", onClosed);
|
||||||
|
|
||||||
const setPiPOptions = (key, value) => config.plugins.setOptions("picture-in-picture", { [key]: value });
|
const setPiPOptions = config.plugins.isEnabled("picture-in-picture")
|
||||||
|
? (key, value) => require("./plugins/picture-in-picture/back").setOptions({ [key]: value })
|
||||||
|
: () => {};
|
||||||
|
|
||||||
win.on("move", () => {
|
win.on("move", () => {
|
||||||
if (win.isMaximized()) return;
|
if (win.isMaximized()) return;
|
||||||
|
|||||||
Reference in New Issue
Block a user