From b9700a8fd90305ef561e579a315b809c2b83d989 Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Fri, 16 Sep 2022 21:11:30 +0600 Subject: [PATCH] make force refresh button optional --- posts/panel/src/jvmMain/kotlin/Plugin.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/posts/panel/src/jvmMain/kotlin/Plugin.kt b/posts/panel/src/jvmMain/kotlin/Plugin.kt index 7e2c2a3..eee6540 100644 --- a/posts/panel/src/jvmMain/kotlin/Plugin.kt +++ b/posts/panel/src/jvmMain/kotlin/Plugin.kt @@ -41,7 +41,7 @@ object Plugin : Plugin { val buttonsPerRow: Int = 4, val deleteButtonText: String? = null, val rootButtonText: String = "\uD83D\uDD19", - val refreshButtonText: String = "\uD83D\uDD04" + val refreshButtonText: String? = "\uD83D\uDD04" ) override fun Module.setupDI(database: Database, params: JsonObject) { params["panel"] ?.let { element -> @@ -58,7 +58,7 @@ object Plugin : Plugin { ) } }, - config.refreshButtonText.let { text -> + config.refreshButtonText ?.let { text -> PanelButtonBuilder { CallbackDataInlineKeyboardButton( text,