mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2025-12-07 05:55:37 -05:00
fix reactivity of app launcher
This commit is contained in:
@@ -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();
|
||||||
|
|||||||
@@ -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 = {}
|
||||||
|
|||||||
Reference in New Issue
Block a user