From 87106d4e7af61634b33241911297fcefe0d0692c Mon Sep 17 00:00:00 2001 From: Username404 Date: Wed, 2 Jun 2021 15:18:18 +0200 Subject: [PATCH] Save some space in Configuration.kt --- .../fr/username404/snowygui/config/Configuration.kt | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/common/src/main/kotlin/fr/username404/snowygui/config/Configuration.kt b/common/src/main/kotlin/fr/username404/snowygui/config/Configuration.kt index ab91545..0de0bd1 100644 --- a/common/src/main/kotlin/fr/username404/snowygui/config/Configuration.kt +++ b/common/src/main/kotlin/fr/username404/snowygui/config/Configuration.kt @@ -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() }