diff --git a/src/main/kotlin/mdnet/MangaDexClient.kt b/src/main/kotlin/mdnet/MangaDexClient.kt index def6a45..1f8ccc5 100644 --- a/src/main/kotlin/mdnet/MangaDexClient.kt +++ b/src/main/kotlin/mdnet/MangaDexClient.kt @@ -170,6 +170,7 @@ class MangaDexClient(private val settingsFile: File, databaseFile: File, cacheFo LOGGER.info { "Client settings unchanged" } return } + settings = newSettings LOGGER.info { "New settings loaded: $newSettings" } storage.maxSize = (newSettings.maxCacheSizeInMebibytes * 1024 * 1024 * 0.95).toLong() @@ -177,7 +178,6 @@ class MangaDexClient(private val settingsFile: File, databaseFile: File, cacheFo stopImageServer() startImageServer() - settings = newSettings } catch (e: UnrecognizedPropertyException) { LOGGER.warn { "Settings file is invalid: '$e.propertyName' is not a valid setting" } } catch (e: JsonProcessingException) {