fix charlist state on character deletion

This commit is contained in:
RossAscends
2023-07-14 04:15:31 +09:00
parent 057ae5ce14
commit 4bf8e2c49f
2 changed files with 35 additions and 24 deletions

View File

@@ -750,10 +750,13 @@ function loadPowerUserSettings(settings, data) {
async function loadCharListState() {
if (document.getElementById('CharID0') !== null) {
console.debug('setting charlist state to...')
if (power_user.charListGrid === true) {
console.debug('..to grid')
$("#charListGridToggle").trigger('click')
}
} else { console.debug('..to list') }
} else {
console.debug('charlist not ready yet')
await delay(100)
loadCharListState();
}