1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2025-12-06 21:45:38 -05: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

View File

@@ -178,6 +178,11 @@ Item {
} }
onSelectedCategoryChanged: updateFilteredModel() onSelectedCategoryChanged: updateFilteredModel()
onAppUsageRankingChanged: updateFilteredModel() onAppUsageRankingChanged: updateFilteredModel()
// Watch AppSearchService.applications changes via property binding
property var _watchApplications: AppSearchService.applications
on_WatchApplicationsChanged: updateFilteredModel()
// Initialize // Initialize
Component.onCompleted: { Component.onCompleted: {
updateFilteredModel(); updateFilteredModel();

View File

@@ -10,9 +10,7 @@ import "../Common/fuzzysort.js" as Fuzzy
Singleton { Singleton {
id: root id: root
property list<DesktopEntry> applications: Array.from(DesktopEntries.applications.values) property var applications: DesktopEntries.applications.values
.filter(app => !app.noDisplay)
.sort((a, b) => a.name.localeCompare(b.name))
property var applicationsByName: { property var applicationsByName: {
var byName = {} var byName = {}