mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 07:37:20 +02:00
Limit re-sort rate to 2 Hz.
This commit is contained in:
parent
a2da59271d
commit
58d8945aa5
1 changed files with 5 additions and 1 deletions
|
@ -42,6 +42,8 @@ Rectangle {
|
||||||
property var activeTab: "nearbyTab";
|
property var activeTab: "nearbyTab";
|
||||||
property bool currentlyEditingDisplayName: false
|
property bool currentlyEditingDisplayName: false
|
||||||
property bool punctuationMode: false;
|
property bool punctuationMode: false;
|
||||||
|
property double loudSortTime: 0.0;
|
||||||
|
readonly property double kLOUD_SORT_PERIOD_MS: 500.0;
|
||||||
|
|
||||||
HifiConstants { id: hifi; }
|
HifiConstants { id: hifi; }
|
||||||
RootHttpRequest { id: http; }
|
RootHttpRequest { id: http; }
|
||||||
|
@ -1247,8 +1249,10 @@ Rectangle {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (nearbyTable.sortIndicatorColumn == 0) { // Current sort by loudness so re-sort.
|
if (nearbyTable.sortIndicatorColumn == 0 && Date.now() - pal.loudSortTime >= pal.kLOUD_SORT_PERIOD_MS) {
|
||||||
|
// Current sort by loudness so re-sort.
|
||||||
sortModel();
|
sortModel();
|
||||||
|
pal.loudSortTime = Date.now();
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 'clearLocalQMLData':
|
case 'clearLocalQMLData':
|
||||||
|
|
Loading…
Reference in a new issue