Skip to main content

compute_active_chip

Function compute_active_chip 

Source
fn compute_active_chip(
    enabled: bool,
    selected: &[String],
    all_apps: &[AudioAppView],
) -> ActiveChip
Expand description

Compute which chip should appear active. Order matters — when multiple chips could describe the state (e.g. empty selection could be “All” OR “Suggested produced no matches”), the most specific wins.