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