From aa122e234875447ed5a4b36aacde0a939138987e Mon Sep 17 00:00:00 2001 From: waicool20 Date: Mon, 21 May 2018 22:17:35 +0800 Subject: [PATCH] Minor profile parsing fix --- .../kotlin/com/waicool20/kaga/config/KancolleAutoProfile.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/com/waicool20/kaga/config/KancolleAutoProfile.kt b/src/main/kotlin/com/waicool20/kaga/config/KancolleAutoProfile.kt index bb3513d..8f9bedb 100644 --- a/src/main/kotlin/com/waicool20/kaga/config/KancolleAutoProfile.kt +++ b/src/main/kotlin/com/waicool20/kaga/config/KancolleAutoProfile.kt @@ -172,7 +172,7 @@ data class KancolleAutoProfile( private inline fun loadSection(ini: Wini, section: String? = null): T { val name = T::class.simpleName return ini[section ?: name]?.toObject() ?: run { - error("Could not parse $name section! Using defaults for it!") + runLater { error("Could not parse $name section! Using defaults for it!") } }.let { T::class.java.newInstance() } } }