Skip to content

Commit

Permalink
minor logic tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
B0ney committed Jan 17, 2024
1 parent 1d58995 commit 5f11137
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/screen/entry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -122,16 +122,16 @@ impl Entries {
pub fn delete_selected(&mut self, current_tracker_info: &mut TrackerInfo) {
// clear the entries if everything is selected
if self.all_selected() {
self.entries.clear();
self.entries.clear()
} else {
self.entries.retain(|entry: &Entry| {
if current_tracker_info.matches_path(&entry.path) {
current_tracker_info.clear();
}

!entry.selected
})
}

self.entries.retain(|entry: &Entry| {
if current_tracker_info.matches_path(&entry.path) {
current_tracker_info.clear();
}

!entry.selected
});
}

pub fn files(&self) -> usize {
Expand Down

0 comments on commit 5f11137

Please sign in to comment.