From 6cbc2d66414a316b0c86d1efcf7b6ad82c0192fd Mon Sep 17 00:00:00 2001 From: sabonerune <102559104+sabonerune@users.noreply.github.com> Date: Fri, 23 Feb 2024 16:23:08 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=9B=B8=E3=81=8D=E5=87=BA=E3=81=97?= =?UTF-8?q?=E5=85=88=E3=82=92=E5=9B=BA=E5=AE=9A=E3=82=92=E6=9C=89=E5=8A=B9?= =?UTF-8?q?=E3=81=AB=E3=81=97=E3=81=9F=E3=81=A8=E3=81=8D=E3=81=AB=E6=9B=B8?= =?UTF-8?q?=E3=81=8D=E5=87=BA=E3=81=97=E5=85=88=E3=81=8C=E6=9C=AA=E9=81=B8?= =?UTF-8?q?=E6=8A=9E=E3=81=AE=E5=A0=B4=E5=90=88=E3=81=AF=E8=87=AA=E5=8B=95?= =?UTF-8?q?=E7=9A=84=E3=81=AB=E3=83=80=E3=82=A4=E3=82=A2=E3=83=AD=E3=82=B0?= =?UTF-8?q?=E3=82=92=E8=A1=A8=E7=A4=BA=E3=81=99=E3=82=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/backend/common/ConfigManager.ts | 9 +++++++ src/components/Dialog/SettingDialog.vue | 34 +++++++++++++++++++------ 2 files changed, 35 insertions(+), 8 deletions(-) diff --git a/src/backend/common/ConfigManager.ts b/src/backend/common/ConfigManager.ts index 43f37c3112..adb8c1f83f 100644 --- a/src/backend/common/ConfigManager.ts +++ b/src/backend/common/ConfigManager.ts @@ -123,6 +123,15 @@ const migrations: [string, (store: Record) => unknown][] = [ return config; }, ], + [ + ">=0.16", + (config) => { + // 書き出し先のディレクトリが空文字の場合書き出し先固定を無効化する + if (config.fixedExportEnabled && config.fixedExportDir === "") { + config.fixedExportEnabled = false; + } + }, + ], ]; export type Metadata = { diff --git a/src/components/Dialog/SettingDialog.vue b/src/components/Dialog/SettingDialog.vue index 2333a86ea8..826386ac89 100644 --- a/src/components/Dialog/SettingDialog.vue +++ b/src/components/Dialog/SettingDialog.vue @@ -470,7 +470,7 @@ flat color="primary" icon="folder_open" - @click="openFileExplore" + @click="selectFixedExportDir()" > フォルダ選択 @@ -1011,7 +1011,7 @@