Don't getNextPage when at beginning (even if that is also the end).

This commit is contained in:
howard-stearns 2018-06-05 17:04:29 -07:00
parent ce41b83bad
commit 6aa551b35c
2 changed files with 2 additions and 2 deletions

View file

@ -523,7 +523,7 @@ Item {
visible: !connectionsLoading.visible;
clip: true;
model: connectionsModel.model;
onAtYEndChanged: if (connectionsList.atYEnd /*&& !connectionsList.atYBeginning*/) { connectionsModel.getNextPage(); }
onAtYEndChanged: if (connectionsList.atYEnd && !connectionsList.atYBeginning) { connectionsModel.getNextPage(); }
snapMode: ListView.SnapToItem;
// Anchors
anchors.fill: parent;

View file

@ -239,7 +239,7 @@ Item {
// Only auto-refresh if the user hasn't scrolled
// and there is more data to grab
if (transactionHistory.atYBeginning && data.history.length && transactionHistoryModel.currentPageToRetrieve >= 0) {
if (transactionHistory.atYBeginning && data.history.length) {
refreshTimer.start();
}
return result;