mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
fix WI panel display on autoimport char lorebooks.
This commit is contained in:
@@ -1759,6 +1759,9 @@ export async function importEmbeddedWorldInfo(skipPopup = false) {
|
|||||||
|
|
||||||
const newIndex = world_names.indexOf(bookName);
|
const newIndex = world_names.indexOf(bookName);
|
||||||
if (newIndex >= 0) {
|
if (newIndex >= 0) {
|
||||||
|
//show&draw the WI panel before..
|
||||||
|
$("#WIDrawerIcon").trigger('click');
|
||||||
|
//..auto-opening the new imported WI
|
||||||
$("#world_editor_select").val(newIndex).trigger('change');
|
$("#world_editor_select").val(newIndex).trigger('change');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user