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:
parent
8c768fadef
commit
8b195db319
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue