mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-01-24 21:42:51 -05:00
dgop: fix default sort direction
This commit is contained in:
@@ -569,10 +569,18 @@ Singleton {
|
||||
}
|
||||
|
||||
function setSortBy(newSortBy) {
|
||||
if (newSortBy === currentSort) {
|
||||
if (newSortBy !== currentSort) {
|
||||
currentSort = newSortBy;
|
||||
sortAscending = false;
|
||||
applySorting();
|
||||
}
|
||||
}
|
||||
|
||||
function toggleSort(column) {
|
||||
if (column === currentSort) {
|
||||
sortAscending = !sortAscending;
|
||||
} else {
|
||||
currentSort = newSortBy;
|
||||
currentSort = column;
|
||||
sortAscending = false;
|
||||
}
|
||||
applySorting();
|
||||
|
||||
Reference in New Issue
Block a user