Skip to main content

next_profile_name

Function next_profile_name 

Source
pub fn next_profile_name(names: &[String], active: &str) -> Option<String>
Expand description

The profile that a “cycle profile” hotkey should switch to: the one after active in names, wrapping around to the first. None when there are no profiles or the active name isn’t found (nothing sensible to do). Pure so the wrap-around is unit-testable.