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 38ac89b..9b730eb 100644 --- a/common/src/main/kotlin/fr/username404/snowygui/config/Configuration.kt +++ b/common/src/main/kotlin/fr/username404/snowygui/config/Configuration.kt @@ -52,9 +52,6 @@ object Configuration { """ |Snowy { | displayInitMessage = true - | enabledFeatures { - | GammaBoost = false - | } |} """.trimMargin() ) @@ -64,7 +61,9 @@ object Configuration { writeConfig(it) } } - val enabledFeatures = obtained.extract>("enabledFeatures") // TODO Put enabledFeatures in the obtained config to save the toggled buttons + val enabledFeatures: MutableMap = if (obtained.hasPath("enabledFeatures")) { + obtained.extract("enabledFeatures") + } else mutableMapOf() init { Runtime.getRuntime().addShutdownHook( Thread {