mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-01-28 15:32:50 -05:00
launcher: fix binding loop
This commit is contained in:
@@ -20,11 +20,7 @@ Item {
|
|||||||
property int debounceInterval: 50
|
property int debounceInterval: 50
|
||||||
property bool keyboardNavigationActive: false
|
property bool keyboardNavigationActive: false
|
||||||
property bool suppressUpdatesWhileLaunching: false
|
property bool suppressUpdatesWhileLaunching: false
|
||||||
property var categories: {
|
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")));
|
|
||||||
}
|
|
||||||
readonly property var categoryIcons: categories.map(category => AppSearchService.getCategoryIcon(category))
|
readonly property var categoryIcons: categories.map(category => AppSearchService.getCategoryIcon(category))
|
||||||
property var appUsageRanking: AppUsageHistoryData.appUsageRanking || {}
|
property var appUsageRanking: AppUsageHistoryData.appUsageRanking || {}
|
||||||
property alias model: filteredModel
|
property alias model: filteredModel
|
||||||
@@ -42,6 +38,7 @@ Item {
|
|||||||
if (_initialized)
|
if (_initialized)
|
||||||
return;
|
return;
|
||||||
_initialized = true;
|
_initialized = true;
|
||||||
|
updateCategories();
|
||||||
updateFilteredModel();
|
updateFilteredModel();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user