Initialize talkinghead on extras connection

Closes #2850
This commit is contained in:
Cohee 2024-09-16 09:17:23 +00:00
parent 9ef3385255
commit dcaa8d5e9c
1 changed files with 5 additions and 0 deletions

View File

@ -2064,6 +2064,11 @@ function migrateSettings() {
});
eventSource.on(event_types.MOVABLE_PANELS_RESET, updateVisualNovelModeDebounced);
eventSource.on(event_types.GROUP_UPDATED, updateVisualNovelModeDebounced);
eventSource.on(event_types.EXTRAS_CONNECTED, () => {
if (extension_settings.expressions.talkinghead) {
setTalkingHeadState(extension_settings.expressions.talkinghead);
}
});
const localEnumProviders = {
expressions: () => getCachedExpressions().map(expression => {