[fix] prevent changing character when loading chat
This commit is contained in:
@@ -43,6 +43,7 @@
|
|||||||
import { findCharacterIndexbyId, findCharacterbyId, getCharacterIndexObject } from "src/ts/util";
|
import { findCharacterIndexbyId, findCharacterbyId, getCharacterIndexObject } from "src/ts/util";
|
||||||
import { v4 } from "uuid";
|
import { v4 } from "uuid";
|
||||||
import { checkCharOrder } from "src/ts/storage/globalApi";
|
import { checkCharOrder } from "src/ts/storage/globalApi";
|
||||||
|
import { doingChat } from "src/ts/process";
|
||||||
let openPresetList = false;
|
let openPresetList = false;
|
||||||
let sideBarMode = 0;
|
let sideBarMode = 0;
|
||||||
let editMode = false;
|
let editMode = false;
|
||||||
@@ -76,6 +77,9 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
function changeChar(index: number) {
|
function changeChar(index: number) {
|
||||||
|
if($doingChat){
|
||||||
|
return
|
||||||
|
}
|
||||||
reseter();
|
reseter();
|
||||||
characterFormatUpdate(index);
|
characterFormatUpdate(index);
|
||||||
selectedCharID.set(index);
|
selectedCharID.set(index);
|
||||||
|
|||||||
Reference in New Issue
Block a user