From f4203bcd16ace4c478126a209c0d3aa29ecf611a Mon Sep 17 00:00:00 2001 From: Username404 Date: Mon, 31 May 2021 22:31:34 +0200 Subject: [PATCH] Set insertInFront to false in ConfigScreen.kt --- .../main/kotlin/fr/username404/snowygui/config/ConfigScreen.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/main/kotlin/fr/username404/snowygui/config/ConfigScreen.kt b/common/src/main/kotlin/fr/username404/snowygui/config/ConfigScreen.kt index 2ccc4de..59e35f1 100644 --- a/common/src/main/kotlin/fr/username404/snowygui/config/ConfigScreen.kt +++ b/common/src/main/kotlin/fr/username404/snowygui/config/ConfigScreen.kt @@ -46,7 +46,7 @@ val SnowyConfigScreen: Screen get() { ).addEntry(startStrList( TranslatableComponent(Category.MACROS.translationKey), macrosButtons.map { it.run { "$title: $command" } } - ).setDefaultValue(Configuration.foundMacros.map { "${it.title}: ${it.command}" }).setErrorSupplier { list -> + ).setInsertInFront(false).setDefaultValue(Configuration.foundMacros.map { "${it.title}: ${it.command}" }).setErrorSupplier { list -> supplyComponent(if (list.size > buttonsMax) "$confPrefix.general.macros.toomuchbuttons" else null) }.setCellErrorSupplier { with(it.split(":")) {