Save some space in Configuration.kt

This commit is contained in:
Username404 2021-06-02 15:18:18 +02:00
parent bca8f830e9
commit 87106d4e7a
Signed by: Username404-59
GPG Key ID: 7AB361FBB257A5D1

View File

@ -97,13 +97,9 @@ object Configuration {
Thread { Thread {
runBlocking { runBlocking {
ClickGui.boxContext { ClickGui.boxContext {
enabledFeatures.putAll( enabledFeatures.putAll(buttons.map {
buttons.map { it.title to it.toggled
it.run { })
title to toggled
}
}
)
} }
writeConfig(obtained.withFullModifiableValues()).join() writeConfig(obtained.withFullModifiableValues()).join()
} }