mirror of
https://github.com/fabianonline/telegram_backup.git
synced 2025-06-28 19:36:25 +00:00
Fixed a bug in IniSettings that prevented new accounts from being created.
This commit is contained in:
@ -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.
|
||||
|
Reference in New Issue
Block a user