put default profile first (#864)

This commit is contained in:
Logan McNaughton 2026-05-09 20:58:29 +02:00 committed by GitHub
parent 5b3b8265e5
commit fe23e4bad9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -148,6 +148,12 @@ fn input_profiles(config: &ui::config::Config) -> Vec<String> {
for key in config.input.input_profiles.keys() {
profiles.push(key.clone())
}
// make sure default profile is always first
if let Some(pos) = profiles.iter().position(|x| x == "default") {
let default_profile = profiles.remove(pos);
profiles.insert(0, default_profile);
}
profiles
}