From fe5b2276c8c306d6fb793ba1fd3b9149b5e899f4 Mon Sep 17 00:00:00 2001 From: dankito Date: Wed, 12 Aug 2020 16:30:33 +0200 Subject: [PATCH] Fixed that if retrieving account transactions is not supported but retrieving balances, at least balance gets displayed --- .../ui/javafx/controls/AccountTransactionsControlView.kt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ui/BankingJavaFxControls/src/main/kotlin/net/dankito/banking/ui/javafx/controls/AccountTransactionsControlView.kt b/ui/BankingJavaFxControls/src/main/kotlin/net/dankito/banking/ui/javafx/controls/AccountTransactionsControlView.kt index 8339e4ed..019a1afe 100644 --- a/ui/BankingJavaFxControls/src/main/kotlin/net/dankito/banking/ui/javafx/controls/AccountTransactionsControlView.kt +++ b/ui/BankingJavaFxControls/src/main/kotlin/net/dankito/banking/ui/javafx/controls/AccountTransactionsControlView.kt @@ -28,6 +28,8 @@ open class AccountTransactionsControlView( } + protected val supportsRetrievingBalance = SimpleBooleanProperty(false) + protected val supportsRetrievingAccountTransactions = SimpleBooleanProperty(false) protected val supportsTransferringMoney = SimpleBooleanProperty(false) @@ -57,7 +59,7 @@ open class AccountTransactionsControlView( hbox { useMaxHeight = true - visibleWhen(supportsRetrievingAccountTransactions) + visibleWhen(supportsRetrievingBalance) label(messages["account.transactions.control.view.balance.label"]) { hboxConstraints { @@ -132,6 +134,8 @@ open class AccountTransactionsControlView( } protected open fun checkIfSupportsRetrievingAccountTransactionsOnUiThread() { + supportsRetrievingBalance.value = presenter.doSelectedBankAccountsSupportRetrievingBalance + supportsRetrievingAccountTransactions.value = presenter.doSelectedBankAccountsSupportRetrievingAccountTransactions }