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