mirror of
https://github.com/overte-org/overte.git
synced 2025-04-19 15:43:50 +02:00
Don't getNextPage when at beginning (even if that is also the end).
This commit is contained in:
parent
ce41b83bad
commit
6aa551b35c
2 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue