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 buttonsPerRow: Int = 4,
|
||||||
val deleteButtonText: String? = null,
|
val deleteButtonText: String? = null,
|
||||||
val rootButtonText: String = "\uD83D\uDD19",
|
val rootButtonText: String = "\uD83D\uDD19",
|
||||||
val refreshButtonText: String = "\uD83D\uDD04"
|
val refreshButtonText: String? = "\uD83D\uDD04"
|
||||||
)
|
)
|
||||||
override fun Module.setupDI(database: Database, params: JsonObject) {
|
override fun Module.setupDI(database: Database, params: JsonObject) {
|
||||||
params["panel"] ?.let { element ->
|
params["panel"] ?.let { element ->
|
||||||
@ -58,7 +58,7 @@ object Plugin : Plugin {
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
config.refreshButtonText.let { text ->
|
config.refreshButtonText ?.let { text ->
|
||||||
PanelButtonBuilder {
|
PanelButtonBuilder {
|
||||||
CallbackDataInlineKeyboardButton(
|
CallbackDataInlineKeyboardButton(
|
||||||
text,
|
text,
|
||||||
|
Loading…
Reference in New Issue
Block a user