1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-01-24 13:32:50 -05:00

launcher: fix binding loop

This commit is contained in:
bbedward
2026-01-04 17:19:35 -05:00
parent 80bc87e76b
commit e45075dd84

View File

@@ -20,11 +20,7 @@ Item {
property int debounceInterval: 50
property bool keyboardNavigationActive: false
property bool suppressUpdatesWhileLaunching: false
property var categories: {
const allCategories = AppSearchService.getAllCategories().filter(cat => cat !== "Education" && cat !== "Science");
const result = [I18n.tr("All")];
return result.concat(allCategories.filter(cat => cat !== I18n.tr("All")));
}
property var categories: []
readonly property var categoryIcons: categories.map(category => AppSearchService.getCategoryIcon(category))
property var appUsageRanking: AppUsageHistoryData.appUsageRanking || {}
property alias model: filteredModel
@@ -42,6 +38,7 @@ Item {
if (_initialized)
return;
_initialized = true;
updateCategories();
updateFilteredModel();
}