mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 10:17:40 +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
|
// Only auto-refresh if the user hasn't scrolled
|
||||||
// and there is more data to grab
|
// and there is more data to grab
|
||||||
if (root.currentHistoryPage === 1 && !root.noMoreHistoryData) {
|
if (transactionHistory.atYBeginning && !root.noMoreHistoryData) {
|
||||||
refreshTimer.start();
|
refreshTimer.start();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -225,7 +225,7 @@ Item {
|
||||||
id: refreshTimer;
|
id: refreshTimer;
|
||||||
interval: 4000;
|
interval: 4000;
|
||||||
onTriggered: {
|
onTriggered: {
|
||||||
if (root.currentHistoryPage === 1) {
|
if (transactionHistory.atYBeginning) {
|
||||||
console.log("Refreshing 1st Page of Recent Activity...");
|
console.log("Refreshing 1st Page of Recent Activity...");
|
||||||
root.historyRequestPending = true;
|
root.historyRequestPending = true;
|
||||||
Commerce.balance();
|
Commerce.balance();
|
||||||
|
|
Loading…
Reference in a new issue