save selected as subtree quickly
This commit is contained in:
1 parent
fed08a0f45
commit
91da6f0071
4 files changed
+53
-1
No files matched your search
@@ -115,6 +115,20 @@ export default class AppMenu {
|
||||
this.webContents.send(MainEventType.SAVE_ALL);
|
||||
},
|
||||
},
|
||||
{
|
||||
label: "保存为子树",
|
||||
click: async () => {
|
||||
const res = await dialog.showSaveDialog({
|
||||
defaultPath: this.settings.workdir,
|
||||
properties: ["showOverwriteConfirmation"],
|
||||
filters: [{ name: "Json", extensions: ["json"] }],
|
||||
});
|
||||
if (!res.canceled) {
|
||||
const path = res.filePath;
|
||||
this.webContents.send(MainEventType.SAVE_AS_SUBTREE, path);
|
||||
}
|
||||
},
|
||||
},
|
||||
{
|
||||
label: "合并导出Json",
|
||||
click: () => {
|
||||
|
||||
Reference in new issue
Block a user