forked from Shinonome/dots-hyprland
waffles: start: sort items alphabetically in each category
This commit is contained in:
@@ -13,11 +13,11 @@ import qs.modules.waffle.looks
|
||||
Rectangle {
|
||||
id: root
|
||||
property AggregatedAppCategoryModel aggregatedCategory
|
||||
property list<DesktopEntry> desktopEntries: DesktopEntries.applications.values.filter(app => {
|
||||
property list<DesktopEntry> desktopEntries: [...DesktopEntries.applications.values.filter(app => {
|
||||
const appCategories = app.categories;
|
||||
const gridCategories = root.aggregatedCategory.categories;
|
||||
return appCategories.some(cat => gridCategories.indexOf(cat) !== -1);
|
||||
})
|
||||
})].sort((a, b) => a.name.localeCompare(b.name));
|
||||
|
||||
property Item windowRootItem: {
|
||||
var item = root;
|
||||
|
||||
Reference in New Issue
Block a user