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 5784ac1a..faf8e553 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 @@ -891,7 +891,7 @@ open class BankingPresenter( } open fun removeBanksChangedListener(listener: (List) -> Unit): Boolean { - return banksChangedListeners.add(listener) + return banksChangedListeners.remove(listener) } protected open fun callBanksChangedListeners() { @@ -908,7 +908,7 @@ open class BankingPresenter( } open fun removeRetrievedAccountTransactionsResponseListener(listener: (GetTransactionsResponse) -> Unit): Boolean { - return retrievedAccountTransactionsResponseListeners.add(listener) + return retrievedAccountTransactionsResponseListeners.remove(listener) } protected open fun callRetrievedAccountTransactionsResponseListener(response: GetTransactionsResponse) { @@ -923,7 +923,7 @@ open class BankingPresenter( } open fun removeSelectedAccountsChangedListener(listener: (List) -> Unit): Boolean { - return selectedAccountsChangedListeners.add(listener) + return selectedAccountsChangedListeners.remove(listener) } protected open fun callSelectedAccountsChangedListeners(selectedAccounts: List) {