Fixed that on first app run AppSettings isn't initialized yet when init calls appSettings.automaticallyUpdateAccountsAfterMinutes

This commit is contained in:
dankito 2020-10-23 03:01:53 +02:00
parent f1a8b3edb4
commit 4896d8579b
1 changed files with 4 additions and 3 deletions

View File

@ -77,6 +77,10 @@ open class BankingPresenter(
} }
var appSettings: AppSettings = AppSettings()
protected set
protected val bankingClientsForBanks = mutableMapOf<TypedBankData, IBankingClient>() protected val bankingClientsForBanks = mutableMapOf<TypedBankData, IBankingClient>()
protected var _selectedAccounts = mutableListOf<TypedBankAccount>() protected var _selectedAccounts = mutableListOf<TypedBankAccount>()
@ -1011,9 +1015,6 @@ open class BankingPresenter(
} }
var appSettings: AppSettings = AppSettings()
protected set
open fun appSettingsChanged() { open fun appSettingsChanged() {
persistAppSettings() persistAppSettings()
} }