Fix MS16012: Correct the criteria used to determine empty txn history

This commit is contained in:
Zach Fox 2018-06-18 14:26:46 -07:00
parent 8817af9b9c
commit ad1da3e225

View file

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