diff --git a/src/backend/common/ConfigManager.ts b/src/backend/common/ConfigManager.ts index 43f37c3112..1d3d56ea7a 100644 --- a/src/backend/common/ConfigManager.ts +++ b/src/backend/common/ConfigManager.ts @@ -123,6 +123,20 @@ const migrations: [string, (store: Record) => unknown][] = [ return config; }, ], + [ + ">=0.17", + (config) => { + // 書き出し先のディレクトリが空文字の場合書き出し先固定を無効化する + // FIXME: 勝手に書き換えるのは少し不親切なので、ダイアログで書き換えたことを案内する + const savingSetting = config.savingSetting as ConfigType["savingSetting"]; + if ( + savingSetting.fixedExportEnabled && + savingSetting.fixedExportDir === "" + ) { + savingSetting.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 @@