Skip to content

Commit

Permalink
FIX: エンジン追加後にプロジェクトの保存をキャンセルすると同じエンジンを複数登録できてしまう問題を修正 (#1240)
Browse files Browse the repository at this point in the history
  • Loading branch information
sabonerune authored Mar 1, 2023
1 parent 9b2a7ec commit 29e807a
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions src/components/EngineManageDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,11 @@
</template>
<template v-slot:error>
{{
getEngineDirValidationMessage(newEngineDirValidationState)
newEngineDirValidationState
? getEngineDirValidationMessage(
newEngineDirValidationState
)
: undefined
}}
</template>
</q-input>
Expand All @@ -168,7 +172,7 @@
dense
readonly
:error="
newEngineDirValidationState &&
newEngineDirValidationState != undefined &&
newEngineDirValidationState !== 'ok'
"
placeholder="エンジンフォルダの場所"
Expand All @@ -190,7 +194,11 @@
</template>
<template v-slot:error>
{{
getEngineDirValidationMessage(newEngineDirValidationState)
newEngineDirValidationState
? getEngineDirValidationMessage(
newEngineDirValidationState
)
: undefined
}}
</template>
</q-input>
Expand Down Expand Up @@ -593,6 +601,7 @@ const requireRestart = (message: string) => {
},
})
.onOk(() => {
toInitialState();
store.dispatch("RESTART_APP", {});
})
.onCancel(() => {
Expand Down

0 comments on commit 29e807a

Please sign in to comment.