fix reactivity of app launcher

This commit is contained in:
bbedward committed 2025-07-25 11:28:11 -04:00
1 parent 786b8f3fa1
commit 3825486829
2 files changed
+6 -3

No files matched your search

+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 = {}