1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-06-13 22:46:34 -04:00

fix reactivity of app launcher

This commit is contained in:
bbedward
2025-07-25 11:28:11 -04:00
parent 786b8f3fa1
commit 3825486829
2 changed files with 6 additions and 3 deletions
+5
View File
@@ -178,6 +178,11 @@ Item {
}
onSelectedCategoryChanged: updateFilteredModel()
onAppUsageRankingChanged: updateFilteredModel()
// Watch AppSearchService.applications changes via property binding
property var _watchApplications: AppSearchService.applications
on_WatchApplicationsChanged: updateFilteredModel()
// Initialize
Component.onCompleted: {
updateFilteredModel();
+1 -3
View File
@@ -10,9 +10,7 @@ import "../Common/fuzzysort.js" as Fuzzy
Singleton {
id: root
property list<DesktopEntry> applications: Array.from(DesktopEntries.applications.values)
.filter(app => !app.noDisplay)
.sort((a, b) => a.name.localeCompare(b.name))
property var applications: DesktopEntries.applications.values
property var applicationsByName: {
var byName = {}