mirror of
https://github.com/GiriNeko/YesPlayMusic.git
synced 2025-12-16 21:28:06 +00:00
refactor: organize codes
This commit is contained in:
parent
df799cbf84
commit
bc0de620c1
23 changed files with 415 additions and 398 deletions
|
|
@ -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: () => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue