We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Off
1 parent b243d19 commit b2326dfCopy full SHA for b2326df
subscriptions/sound/src/lib.rs
@@ -425,6 +425,13 @@ impl Model {
425
if let Some(p) = self.active_profiles.get_mut(id) {
426
if p.index == profile.index {
427
*p = profile.clone();
428
+ } else if p.index == 0 && !matches!(profile.available, Availability::No) {
429
+ // If the profile is Off, auto-select the first available profile.
430
+ *p = profile.clone();
431
+ let index = profile.index as u32;
432
+ tokio::spawn(async move {
433
+ set_profile(id, index).await;
434
+ });
435
}
436
437
0 commit comments