From 4896d8579b52985276503a9b6343d1795f4dd1d8 Mon Sep 17 00:00:00 2001 From: dankito Date: Fri, 23 Oct 2020 03:01:53 +0200 Subject: [PATCH] Fixed that on first app run AppSettings isn't initialized yet when init calls appSettings.automaticallyUpdateAccountsAfterMinutes --- .../net/dankito/banking/ui/presenter/BankingPresenter.kt | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/ui/BankingUiCommon/src/commonMain/kotlin/net/dankito/banking/ui/presenter/BankingPresenter.kt b/ui/BankingUiCommon/src/commonMain/kotlin/net/dankito/banking/ui/presenter/BankingPresenter.kt index 866fa4d4..d3021d9c 100644 --- a/ui/BankingUiCommon/src/commonMain/kotlin/net/dankito/banking/ui/presenter/BankingPresenter.kt +++ b/ui/BankingUiCommon/src/commonMain/kotlin/net/dankito/banking/ui/presenter/BankingPresenter.kt @@ -77,6 +77,10 @@ open class BankingPresenter( } + var appSettings: AppSettings = AppSettings() + protected set + + protected val bankingClientsForBanks = mutableMapOf() protected var _selectedAccounts = mutableListOf() @@ -1011,9 +1015,6 @@ open class BankingPresenter( } - var appSettings: AppSettings = AppSettings() - protected set - open fun appSettingsChanged() { persistAppSettings() }