Skip to content

Commit

Permalink
Minor profile parsing fix
Browse files Browse the repository at this point in the history
  • Loading branch information
waicool20 committed May 21, 2018
1 parent a210ed8 commit aa122e2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ data class KancolleAutoProfile(
private inline fun <reified T> 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() }
}
}
Expand Down

0 comments on commit aa122e2

Please sign in to comment.