Fixed that if retrieving account transactions is not supported but retrieving balances, at least balance gets displayed

This commit is contained in:
dankito 2020-08-12 16:30:33 +02:00
parent 392c473056
commit fe5b2276c8
1 changed files with 5 additions and 1 deletions

View File

@ -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
}