From 4f8ce829cd680053dc3333bac47914bdb5bd2ab8 Mon Sep 17 00:00:00 2001 From: dankito Date: Sat, 6 Nov 2021 14:30:04 +0100 Subject: [PATCH] Implemented when user explicitly presses 'Update transactions' button, then account.includeInAutomaticAccountsUpdate is ignored. But may still check for bank.wrongCredentialsEntered ? --- .../net/dankito/banking/ui/presenter/BankingPresenter.kt | 7 ++----- 1 file changed, 2 insertions(+), 5 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 ca9b9755..cebaaa35 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 @@ -398,11 +398,8 @@ open class BankingPresenter( } open fun updateSelectedAccountsTransactionsAsync(done: ((GetTransactionsResponse?) -> Unit)? = null) { - var accountsToUpdate = selectedAccounts.filter { considerAccountInAutomaticUpdates(it) } - if (accountsToUpdate.isEmpty() && (selectedAccountType == SelectedAccountType.SingleAccount - || (selectedAccountType == SelectedAccountType.SingleBank && selectedAccounts.size == 1))) { - accountsToUpdate = selectedAccounts - } + // user explicitly pressed update transactions, so ignore includeInAutomaticAccountsUpdate; hidden accounts are already removed in selectedAccounts + val accountsToUpdate = selectedAccounts // TODO: may remove accounts with wrongCredentialsEntered if (accountsToUpdate.isNotEmpty()) { updateAccountsTransactionsAsync(accountsToUpdate, false, done)