Skip to content

Commit

Permalink
Add: 話者リストを更新するメニューを追加
Browse files Browse the repository at this point in the history
  • Loading branch information
tsukumijima committed Nov 13, 2024
1 parent 9071405 commit 849d5e4
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/components/Menu/MenuBar/MenuBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,16 @@ const engineSubMenuData = computed<MenuItemData[]>(() => {
disablreloadingLocked: true,
});
}
subMenu.push( {
type: "button",
label: "話者リストを更新",
async onClick() {
await store.dispatch("LOAD_CHARACTER", { engineId: store.getters.DEFAULT_ENGINE_ID });
await store.dispatch("LOAD_DEFAULT_STYLE_IDS");
await store.dispatch("CREATE_ALL_DEFAULT_PRESET");
},
disableWhenUiLocked: false,
});
return subMenu;
});
Expand Down

0 comments on commit 849d5e4

Please sign in to comment.