mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 08:04:01 +02:00
Use atYBeginning
This commit is contained in:
parent
4232bc0200
commit
4612ef3d7c
1 changed files with 2 additions and 2 deletions
|
@ -116,7 +116,7 @@ Item {
|
|||
|
||||
// Only auto-refresh if the user hasn't scrolled
|
||||
// and there is more data to grab
|
||||
if (root.currentHistoryPage === 1 && !root.noMoreHistoryData) {
|
||||
if (transactionHistory.atYBeginning && !root.noMoreHistoryData) {
|
||||
refreshTimer.start();
|
||||
}
|
||||
}
|
||||
|
@ -225,7 +225,7 @@ Item {
|
|||
id: refreshTimer;
|
||||
interval: 4000;
|
||||
onTriggered: {
|
||||
if (root.currentHistoryPage === 1) {
|
||||
if (transactionHistory.atYBeginning) {
|
||||
console.log("Refreshing 1st Page of Recent Activity...");
|
||||
root.historyRequestPending = true;
|
||||
Commerce.balance();
|
||||
|
|
Loading…
Reference in a new issue