Only refresh settings on extras connected if current SD source is extras

This commit is contained in:
Cohee 2024-05-22 16:14:42 +03:00
parent bce8627644
commit 5e970c8a51
1 changed files with 3 additions and 1 deletions

View File

@ -3160,7 +3160,9 @@ jQuery(async () => {
}
eventSource.on(event_types.EXTRAS_CONNECTED, async () => {
await loadSettingOptions();
if (extension_settings.sd.source === sources.extras) {
await loadSettingOptions();
}
});
eventSource.on(event_types.CHAT_CHANGED, onChatChanged);