mirror of
https://github.com/fabianonline/telegram_backup.git
synced 2024-11-22 16:56:16 +00:00
Fixed a bug in IniSettings that prevented new accounts from being created.
This commit is contained in:
parent
aec609e6c4
commit
2295ced528
@ -9,9 +9,11 @@ object IniSettings {
|
|||||||
var settings = mutableMapOf<String, MutableList<String>>()
|
var settings = mutableMapOf<String, MutableList<String>>()
|
||||||
|
|
||||||
init {
|
init {
|
||||||
|
if (UserManager.getInstance().user != null) {
|
||||||
loadIni(UserManager.getInstance().fileBase + "config.ini")
|
loadIni(UserManager.getInstance().fileBase + "config.ini")
|
||||||
copySampleIni(UserManager.getInstance().fileBase + "config.sample.ini")
|
copySampleIni(UserManager.getInstance().fileBase + "config.sample.ini")
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Dummy function that can be called to force this object to run its init-code.
|
// Dummy function that can be called to force this object to run its init-code.
|
||||||
fun load() { }
|
fun load() { }
|
||||||
|
Loading…
Reference in New Issue
Block a user