mirror of
https://github.com/overte-org/overte.git
synced 2025-08-04 04:03:35 +02:00
Fix MS16012: Correct the criteria used to determine empty txn history
This commit is contained in:
parent
8817af9b9c
commit
ad1da3e225
1 changed files with 6 additions and 2 deletions
|
@ -253,8 +253,12 @@ Item {
|
||||||
anchors.left: parent.left;
|
anchors.left: parent.left;
|
||||||
anchors.right: parent.right;
|
anchors.right: parent.right;
|
||||||
|
|
||||||
Item { // On empty history. We don't want to flash and then replace, so don't show until we know we're zero.
|
Item {
|
||||||
visible: transactionHistoryModel.count === 0 && transactionHistoryModel.currentPageToRetrieve < 0;
|
// On empty history. We don't want to flash and then replace, so don't show until we know we should.
|
||||||
|
// The history is empty when it contains 1 item (the pending item count) AND there are no pending items.
|
||||||
|
visible: transactionHistoryModel.count === 1 &&
|
||||||
|
transactionHistoryModel.retrievedAtLeastOnePage &&
|
||||||
|
transactionHistoryModel.get(0).count === 0;
|
||||||
anchors.centerIn: parent;
|
anchors.centerIn: parent;
|
||||||
width: parent.width - 12;
|
width: parent.width - 12;
|
||||||
height: parent.height;
|
height: parent.height;
|
||||||
|
|
Loading…
Reference in a new issue