From 712e000349fd4bf6b5dc0464fc9da45f60e5c06d Mon Sep 17 00:00:00 2001 From: hashcoko Date: Tue, 28 Nov 2023 16:31:48 +0900 Subject: [PATCH] [Fix] inlay emotion image Signed-off-by: hashcoko --- src/lang/en.ts | 1 + src/lib/SideBars/CharConfig.svelte | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/src/lang/en.ts b/src/lang/en.ts index e019d514..b24fdf57 100644 --- a/src/lang/en.ts +++ b/src/lang/en.ts @@ -22,6 +22,7 @@ export const languageEnglish = { onlyOneChat: 'There must be least one chat', alreadyCharInGroup: "There is already a character with the same name in the group.", noUserIcon: "You must set your icon first.", + emptyText: "Text is empty.", }, showHelp: "Show Help", help:{ diff --git a/src/lib/SideBars/CharConfig.svelte b/src/lib/SideBars/CharConfig.svelte index d7e048ee..cccc6249 100644 --- a/src/lib/SideBars/CharConfig.svelte +++ b/src/lib/SideBars/CharConfig.svelte @@ -397,6 +397,12 @@ { 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) } }}/>