save & save all

This commit is contained in:
zhandouxiaojiji committed 2020-11-04 10:32:39 +08:00
1 parent 3392630e6b
commit c4eb53ac68
5 files changed
+66 -5

No files matched your search

+13
View File
@@ -101,6 +101,19 @@ export default class AppMenu {
submenu: workspaceItems,
},
{ type: 'separator' },
{
label: "保存",
click: () => {
this.webContents.send(MainEventType.SAVE);
},
},
{
label: "全部保存",
click: () => {
this.webContents.send(MainEventType.SAVE_ALL);
},
},
{ type: 'separator' },
{
label: "关闭",
click: () => {