diff --git a/plugins/src/desktop_entries/mod.rs b/plugins/src/desktop_entries/mod.rs index ad370f8..e15a5dc 100644 --- a/plugins/src/desktop_entries/mod.rs +++ b/plugins/src/desktop_entries/mod.rs @@ -26,13 +26,12 @@ struct Item { impl Hash for Item { fn hash(&self, state: &mut H) { self.appid.hash(state); - self.src.hash(state); } } impl PartialEq for Item { fn eq(&self, other: &Self) -> bool { - self.appid == other.appid && self.src == other.src + self.appid == other.appid } } @@ -143,7 +142,7 @@ impl App { src, }; - deduplicator.insert(item); + deduplicator.replace(item); } } }