Skip to content

Commit 6f4c755

Browse files
committed
fix(sound): add missing call to update profile on active profile change
1 parent a44fc56 commit 6f4c755

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

subscriptions/sound/src/lib.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -442,8 +442,9 @@ impl Model {
442442
);
443443

444444
let index = profile.index as u32;
445-
446-
if let Some(prev) = self.active_profiles.insert(id, profile.clone()) {
445+
let prev = self.active_profiles.insert(id, profile.clone());
446+
self.update_ui_profiles();
447+
if let Some(prev) = prev {
447448
if prev.index == profile.index {
448449
return;
449450
}

0 commit comments

Comments
 (0)