[fix] prevent changing character when loading chat

This commit is contained in:
kwaroran
2023-06-18 22:41:10 +09:00
parent c7d74b4127
commit 3251afed47

View File

@@ -43,6 +43,7 @@
import { findCharacterIndexbyId, findCharacterbyId, getCharacterIndexObject } from "src/ts/util";
import { v4 } from "uuid";
import { checkCharOrder } from "src/ts/storage/globalApi";
import { doingChat } from "src/ts/process";
let openPresetList = false;
let sideBarMode = 0;
let editMode = false;
@@ -76,6 +77,9 @@
}
function changeChar(index: number) {
if($doingChat){
return
}
reseter();
characterFormatUpdate(index);
selectedCharID.set(index);