diff --git a/src/app.rs b/src/app.rs index 1e1c4eb..6200689 100644 --- a/src/app.rs +++ b/src/app.rs @@ -1348,7 +1348,10 @@ impl Application for App { Message::AddToSidebar(entity_opt) => { let mut favorites = self.config.favorites.clone(); for path in self.selected_paths(entity_opt) { - favorites.push(Favorite::from_path(path)); + let favorite = Favorite::from_path(path); + if !favorites.iter().any(|f| f == &favorite) { + favorites.push(favorite); + } } config_set!(favorites, favorites); return self.update_config();