mirror of
https://github.com/overte-org/overte.git
synced 2025-04-09 13:02:24 +02:00
Merge pull request #14864 from SimonWalton-HiFi/pal-sort-loudness-persist
Case 19724: If sorting PAL by loudness re-sort upon loudness updates
This commit is contained in:
commit
748747da2d
1 changed files with 7 additions and 0 deletions
|
@ -42,6 +42,8 @@ Rectangle {
|
|||
property var activeTab: "nearbyTab";
|
||||
property bool currentlyEditingDisplayName: false
|
||||
property bool punctuationMode: false;
|
||||
property double loudSortTime: 0.0;
|
||||
readonly property double kLOUD_SORT_PERIOD_MS: 1000.0;
|
||||
|
||||
HifiConstants { id: hifi; }
|
||||
RootHttpRequest { id: http; }
|
||||
|
@ -1247,6 +1249,11 @@ Rectangle {
|
|||
}
|
||||
}
|
||||
}
|
||||
if (nearbyTable.sortIndicatorColumn == 0 && Date.now() - pal.loudSortTime >= pal.kLOUD_SORT_PERIOD_MS) {
|
||||
// Current sort by loudness so re-sort.
|
||||
sortModel();
|
||||
pal.loudSortTime = Date.now();
|
||||
}
|
||||
break;
|
||||
case 'clearLocalQMLData':
|
||||
ignored = {};
|
||||
|
|
Loading…
Reference in a new issue