pub fn add_to_remove_list(app: &mut AppState, item: PackageItem)Expand description
What: Add a PackageItem to the remove list if it is not already present.
Inputs:
app: Mutable application state (remove_listand selection)item: Package to add
Output:
- Inserts at the front and selects index 0; no-op on dedup.
Details:
- Leaves
remove_listorder deterministic by always pushing new entries to the head. - Uses
HashSetfor O(1) membership checking instead of linear scan.