Fix: Remove duplicate apps in Quickshell launcher using filter

This commit is contained in:
Nasrullaunais
2025-11-20 07:26:48 +05:30
parent 5c8d824749
commit 6e5ba69430
@@ -40,8 +40,13 @@ Singleton {
} }
] ]
// Deduped list to fix double icons
readonly property list<DesktopEntry> list: Array.from(DesktopEntries.applications.values) readonly property list<DesktopEntry> list: Array.from(DesktopEntries.applications.values)
.sort((a, b) => a.name.localeCompare(b.name)) .filter((app, index, self) =>
index === self.findIndex((t) => (
t.id === app.id
))
)
readonly property var preppedNames: list.map(a => ({ readonly property var preppedNames: list.map(a => ({
name: Fuzzy.prepare(`${a.name} `), name: Fuzzy.prepare(`${a.name} `),