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
1 changed files with 3 additions and 7 deletions

View File

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