Skip to content

Commit

Permalink
未対応エンジン追加時にリストが消える件(VOICEVOX#1168)
Browse files Browse the repository at this point in the history
・追加されたエンジンが未対応である場合には追加を阻止
・追加されてしまっている場合には、エラーで処理中断しないように
  • Loading branch information
nmori committed Feb 5, 2023
1 parent 4d3e408 commit 0972e5e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/background/engineManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,7 @@ export class EngineManager {
}

if (
["name", "uuid", "port", "command", "icon"].some(
["name", "uuid", "port", "command", "icon" ,"supported_features"].some(
(key) => !(key in manifestContent)
)
) {
Expand Down
2 changes: 1 addition & 1 deletion src/components/EngineManageDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@
</div>
<div class="no-wrap q-pl-md">
<div class="text-h6 q-ma-sm">機能</div>
<ul v-if="engineManifests[selectedId]">
<ul v-if="engineManifests[selectedId].supportedFeatures">
<li
v-for="[feature, value] in Object.entries(
engineManifests[selectedId].supportedFeatures
Expand Down

0 comments on commit 0972e5e

Please sign in to comment.