commit cd04fd047724f433d8273aa2c29e152d4032cc6a
parent 6105429a2a14d6ec16bbe039c4fe0e4e74e05ba7
Author: rhunk <101876869+rhunk@users.noreply.github.com>
Date:   Sat,  1 Jun 2024 16:17:14 +0200

fix: custom emoji font

Diffstat:
Mcore/src/main/kotlin/me/rhunk/snapenhance/core/features/impl/experiments/CustomEmojiFont.kt | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/core/src/main/kotlin/me/rhunk/snapenhance/core/features/impl/experiments/CustomEmojiFont.kt b/core/src/main/kotlin/me/rhunk/snapenhance/core/features/impl/experiments/CustomEmojiFont.kt @@ -10,7 +10,7 @@ private var cacheFontPath: String? = null fun getCustomEmojiFontPath( context: ModContext ): String? { - val customFileName = context.config.experimental.nativeHooks.customEmojiFont.getNullable() ?: return null + val customFileName = context.config.experimental.nativeHooks.customEmojiFont.getNullable()?.takeIf { it.isNotBlank() } ?: return null if (cacheFontPath == null) { cacheFontPath = runCatching { context.bridgeClient.getFileHandlerManager().getFileHandleLocalPath(