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