Refactor tray to use provider + play/pause on click

This commit is contained in:
TC
2021-01-14 23:09:04 +01:00
parent 2861473097
commit ed09304ed7
4 changed files with 20 additions and 22 deletions

View File

@ -116,6 +116,15 @@ const mainMenuTemplate = (win) => [
config.set("options.appVisible", false);
},
},
{ type: "separator" },
{
label: "Play/Pause on click",
type: "checkbox",
checked: config.get("options.trayClickPlayPause"),
click: (item) => {
config.set("options.trayClickPlayPause", item.checked);
},
},
],
},
{ type: "separator" },