mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Only refresh settings on extras connected if current SD source is extras
This commit is contained in:
@ -3160,7 +3160,9 @@ jQuery(async () => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
eventSource.on(event_types.EXTRAS_CONNECTED, 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);
|
eventSource.on(event_types.CHAT_CHANGED, onChatChanged);
|
||||||
|
Reference in New Issue
Block a user