mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-13 03:11:46 +00:00
This commit is contained in:
2
menu.js
2
menu.js
@ -92,7 +92,7 @@ const mainMenuTemplate = (win) => {
|
|||||||
type: "checkbox",
|
type: "checkbox",
|
||||||
checked: config.get("options.singleInstanceLock"),
|
checked: config.get("options.singleInstanceLock"),
|
||||||
click: (item) => {
|
click: (item) => {
|
||||||
config.set("options.singleInstanceLock", item.checked);
|
config.setMenuOption("options.singleInstanceLock", item.checked);
|
||||||
if (item.checked && !app.hasSingleInstanceLock()) {
|
if (item.checked && !app.hasSingleInstanceLock()) {
|
||||||
app.requestSingleInstanceLock();
|
app.requestSingleInstanceLock();
|
||||||
} else if (!item.checked && app.hasSingleInstanceLock()) {
|
} else if (!item.checked && app.hasSingleInstanceLock()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user