mirror of
https://github.com/end-4/dots-hyprland.git
synced 2026-06-05 23:09:26 -05:00
Fix: Remove duplicate apps in Quickshell launcher using filter (#2528)
This commit is contained in:
@@ -40,9 +40,14 @@ Singleton {
|
||||
}
|
||||
]
|
||||
|
||||
// Deduped list to fix double icons
|
||||
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 => ({
|
||||
name: Fuzzy.prepare(`${a.name} `),
|
||||
entry: a
|
||||
|
||||
Reference in New Issue
Block a user