Skip to content

Commit

Permalink
Fix selection counter never decreasing
Browse files Browse the repository at this point in the history
  • Loading branch information
0x192 committed Jan 31, 2022
1 parent ed4b753 commit 64c99db
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/core/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ pub fn fetch_packages(
pub fn update_selection_count(selection: &mut Selection, p_state: PackageState, add: bool) {
// Selection can't be negative
if !add && selection.selected_packages.is_empty() {
selection.enabled = 0;
selection.disabled = 0;
selection.uninstalled = 0;
return;
}

Expand Down

0 comments on commit 64c99db

Please sign in to comment.