新建&删除节点
This commit is contained in:
1 parent
84a354274d
commit
0c5d62157b
4 files changed
+53
-20
No files matched your search
+15
-8
@@ -102,6 +102,21 @@ export default class AppMenu {
|
||||
this.webContents.send(MainEventType.SAVE_ALL);
|
||||
},
|
||||
},
|
||||
{ type: 'separator' },
|
||||
{
|
||||
label: '新建节点',
|
||||
accelerator: 'insert',
|
||||
click: () => {
|
||||
this.webContents.send(MainEventType.CREATE_NODE, 'unknow');
|
||||
}
|
||||
},
|
||||
{
|
||||
label: '删除节点',
|
||||
accelerator: 'delete',
|
||||
click: () => {
|
||||
this.webContents.send(MainEventType.DELETE_NODE);
|
||||
}
|
||||
},
|
||||
]
|
||||
});
|
||||
}
|
||||
@@ -300,14 +315,6 @@ export default class AppMenu {
|
||||
classifyItems.push(other);
|
||||
}
|
||||
|
||||
const unknonwItem: MenuItemConstructorOptions = {
|
||||
label: '空白节点',
|
||||
click: () => {
|
||||
this.webContents.send(MainEventType.CREATE_NODE, 'unknow');
|
||||
}
|
||||
}
|
||||
classifyItems.push(unknonwItem);
|
||||
|
||||
return new MenuItem({
|
||||
label: "新建节点",
|
||||
submenu: classifyItems
|
||||
|
||||
Reference in new issue
Block a user