refactor: organize codes

This commit is contained in:
qier222 2020-11-23 16:04:45 +08:00
parent df799cbf84
commit bc0de620c1
23 changed files with 415 additions and 398 deletions

View file

@ -55,6 +55,13 @@ export function createMenu(win) {
},
]
: [{ role: "delete" }, { type: "separator" }, { role: "selectAll" }]),
{
label: "Search",
accelerator: "CmdOrCtrl+F",
click: () => {
win.webContents.send("search");
},
},
],
},
{
@ -136,7 +143,7 @@ export function createMenu(win) {
{
role: "window",
id: "window",
label: "Yes Play Music",
label: "YesPlayMusic",
type: "checkbox",
checked: true,
click: () => {