Don't subscribe to all events.
This commit is contained in:
parent
660c19624b
commit
cd5970dceb
1 changed files with 3 additions and 3 deletions
|
|
@ -118,16 +118,16 @@ impl App {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
match facility {
|
match facility {
|
||||||
Some(Facility::Sink | Facility::SinkInput) => {
|
Some(Facility::Sink) => {
|
||||||
send!(input, AppInput::OutputVolume);
|
send!(input, AppInput::OutputVolume);
|
||||||
}
|
}
|
||||||
Some(Facility::Source | Facility::SourceOutput) => {
|
Some(Facility::Source) => {
|
||||||
send!(input, AppInput::InputVolume);
|
send!(input, AppInput::InputVolume);
|
||||||
}
|
}
|
||||||
_ => {}
|
_ => {}
|
||||||
}
|
}
|
||||||
})));
|
})));
|
||||||
context.subscribe(InterestMaskSet::all(), |_| {});
|
context.subscribe(InterestMaskSet::SINK | InterestMaskSet::SOURCE, |_| {});
|
||||||
}
|
}
|
||||||
|
|
||||||
fn update_inputs(&self, widgets: &AppWidgets) {
|
fn update_inputs(&self, widgets: &AppWidgets) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue