fix(sound): SourceChange should lookup source_ids

This commit is contained in:
Michael Aaron Murphy 2024-08-15 10:00:03 +02:00
parent c63ae64029
commit a195885300
No known key found for this signature in database
GPG key ID: B2732D4240C9212C

View file

@ -442,7 +442,7 @@ impl Page {
}
Message::SourceChanged(pos) => {
if let Some(&node_id) = self.sink_ids.get(pos) {
if let Some(&node_id) = self.source_ids.get(pos) {
self.active_source = Some(pos);
wpctl_set_default(node_id);
}