mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-11 10:31:47 +00:00
use Electron with ToastXML instead of SnoreToast
* Add support for protocol commands * Remove node-notifier dependency
This commit is contained in:
12
menu.js
12
menu.js
@ -131,16 +131,14 @@ const mainMenuTemplate = (win) => {
|
||||
],
|
||||
},
|
||||
{
|
||||
label: "Single instance lock",
|
||||
label: "Release single instance lock",
|
||||
type: "checkbox",
|
||||
checked: config.get("options.singleInstanceLock"),
|
||||
checked: false,
|
||||
click: (item) => {
|
||||
config.setMenuOption("options.singleInstanceLock", item.checked);
|
||||
if (item.checked && !app.hasSingleInstanceLock()) {
|
||||
app.requestSingleInstanceLock();
|
||||
} else if (!item.checked && app.hasSingleInstanceLock()) {
|
||||
if (item.checked && app.hasSingleInstanceLock())
|
||||
app.releaseSingleInstanceLock();
|
||||
}
|
||||
else if (!item.checked && !app.hasSingleInstanceLock())
|
||||
app.requestSingleInstanceLock();
|
||||
},
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user