[Fix] inlay emotion image

Signed-off-by: hashcoko <hashcoko@gmail.com>
This commit is contained in:
hashcoko
2023-11-28 16:31:48 +09:00
parent 99302d9b76
commit 712e000349
2 changed files with 7 additions and 0 deletions

View File

@@ -397,6 +397,12 @@
<CheckInput bind:check={currentChar.data.inlayViewScreen} name={language.inlayViewScreen} onChange={() => {
if(currentChar.type === 'character'){
if(currentChar.data.inlayViewScreen || currentChar.data.additionalAssets === undefined){
currentChar.data.additionalAssets = []
}else if(!currentChar.data.inlayViewScreen || currentChar.data.additionalAssets.length === 0){
currentChar.data.additionalAssets = undefined
}
currentChar.data = updateInlayScreen(currentChar.data)
}
}}/>