Make the "behavior" sub-category the first element of the first element of the general category in the cloth configuration screen

This commit is contained in:
Username404 2021-05-29 23:08:02 +02:00
parent 8c768fadef
commit 8b195db319
Signed by: Username404-59
GPG Key ID: 7AB361FBB257A5D1
1 changed files with 8 additions and 7 deletions

View File

@ -20,13 +20,14 @@ val SnowyConfigScreen: Screen get() {
.setShouldListSmoothScroll(true)
.setTitle(translationComponent).apply {
with(entryBuilder()) {
getOrCreateCategory(TranslatableComponent("$confPrefix.general")).addEntry(
startBooleanToggle(Component.nullToEmpty("Risky Cheats"), riskyCheatsEnabled)
.requireRestart()
.setSaveConsumer {
riskyCheatsEnabled = it
}.build()
).addEntry(startSubCategory(TranslatableComponent("$confPrefix.behavior")).build())
getOrCreateCategory(TranslatableComponent("$confPrefix.general")).addEntry(startSubCategory(TranslatableComponent("$confPrefix.behavior")).build())
.addEntry(
startBooleanToggle(Component.nullToEmpty("Risky Cheats"), riskyCheatsEnabled)
.requireRestart()
.setSaveConsumer {
riskyCheatsEnabled = it
}.build()
)
}
}.build()
} catch (e: ClassNotFoundException) {