From ba1b0a27f0ade1dfc7e7578bf39afd6197afb034 Mon Sep 17 00:00:00 2001 From: dankito Date: Sat, 8 Aug 2020 19:23:50 +0200 Subject: [PATCH] Added accountUpdated() to persist updated account --- .../net/dankito/banking/ui/presenter/BankingPresenter.kt | 4 ++++ 1 file changed, 4 insertions(+) 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 e86a5e44..2c3b4648 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 @@ -365,6 +365,10 @@ open class BankingPresenter( } + open fun accountUpdated(account: Customer) { + persistAccount(account) + } + protected open fun persistAccount(customer: Customer) { persister.saveOrUpdateAccount(customer, customers) }