forked from openkylin/ukui-menu
修改全部应用排序bug
This commit is contained in:
parent
34f33a8dfc
commit
b6da65c021
|
@ -170,9 +170,13 @@ bool AllAppDataProvider::appDataSort(const DataEntity &a, const DataEntity &b)
|
|||
}
|
||||
} else if (b.isRecentInstall()) {
|
||||
return false;
|
||||
} else {
|
||||
if (a.launchTimes() == b.launchTimes()) {
|
||||
return letterSort(a.firstLetter(), b.firstLetter());
|
||||
} else {
|
||||
return a.launchTimes() > b.launchTimes();
|
||||
}
|
||||
}
|
||||
} else {
|
||||
return a.top() > b.top();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue