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 }