mirror of
https://github.com/InsanusMokrassar/PlaguPoster.git
synced 2024-11-17 13:33:47 +00:00
make force refresh button optional
This commit is contained in:
parent
79c195f534
commit
b9700a8fd9
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user