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:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user