From 64c99db00d07e5ad508a6402f2e2f7dce78af7e1 Mon Sep 17 00:00:00 2001 From: 0x192 Date: Mon, 31 Jan 2022 01:06:14 +0100 Subject: [PATCH] Fix selection counter never decreasing --- src/core/utils.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/core/utils.rs b/src/core/utils.rs index 9197a67..062e0cf 100644 --- a/src/core/utils.rs +++ b/src/core/utils.rs @@ -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; }