mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-10 10:11:46 +00:00
fix single instance lock menu checkbox
This commit is contained in:
6
menu.js
6
menu.js
@ -169,11 +169,11 @@ const mainMenuTemplate = (win) => {
|
||||
{
|
||||
label: "Single instance lock",
|
||||
type: "checkbox",
|
||||
checked: false,
|
||||
checked: true,
|
||||
click: (item) => {
|
||||
if (item.checked && app.hasSingleInstanceLock())
|
||||
if (!item.checked && app.hasSingleInstanceLock())
|
||||
app.releaseSingleInstanceLock();
|
||||
else if (!item.checked && !app.hasSingleInstanceLock())
|
||||
else if (item.checked && !app.hasSingleInstanceLock())
|
||||
app.requestSingleInstanceLock();
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user