From cd04fd047724f433d8273aa2c29e152d4032cc6a Mon Sep 17 00:00:00 2001 From: rhunk <101876869+rhunk@users.noreply.github.com> Date: Sat, 1 Jun 2024 16:17:14 +0200 Subject: [PATCH] fix: custom emoji font --- .../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 index 77fbcfb3..a468cd10 100644 --- 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(