save selected as subtree quickly

This commit is contained in:
codetypes committed 2024-03-13 08:29:28 +08:00
1 parent fed08a0f45
commit 91da6f0071
4 files changed
+53 -1

No files matched your search

+14
View File
@@ -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: () => {