Fixed a bug in IniSettings that prevented new accounts from being created.

This commit is contained in:
Fabian Schlenz 2018-03-13 06:42:39 +01:00
parent aec609e6c4
commit 2295ced528
1 changed files with 4 additions and 2 deletions

View File

@ -9,8 +9,10 @@ object IniSettings {
var settings = mutableMapOf<String, MutableList<String>>()
init {
loadIni(UserManager.getInstance().fileBase + "config.ini")
copySampleIni(UserManager.getInstance().fileBase + "config.sample.ini")
if (UserManager.getInstance().user != null) {
loadIni(UserManager.getInstance().fileBase + "config.ini")
copySampleIni(UserManager.getInstance().fileBase + "config.sample.ini")
}
}
// Dummy function that can be called to force this object to run its init-code.