fix WI panel display on autoimport char lorebooks.
This commit is contained in:
parent
19acc05516
commit
1c095415a4
|
@ -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');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue