mirror of
https://github.com/Universal-Debloater-Alliance/universal-android-debloater-next-generation.git
synced 2026-08-24 06:24:19 +02:00
Fix selection counter never decreasing
This commit is contained in:
parent
ed4b753bfd
commit
64c99db00d
1 changed files with 3 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue