Don't subscribe to all events.

This commit is contained in:
Lucy 2022-03-23 13:36:47 -04:00
parent 660c19624b
commit cd5970dceb
No known key found for this signature in database
GPG key ID: EBC517FAD666BBF1

View file

@ -118,16 +118,16 @@ impl App {
return;
}
match facility {
Some(Facility::Sink | Facility::SinkInput) => {
Some(Facility::Sink) => {
send!(input, AppInput::OutputVolume);
}
Some(Facility::Source | Facility::SourceOutput) => {
Some(Facility::Source) => {
send!(input, AppInput::InputVolume);
}
_ => {}
}
})));
context.subscribe(InterestMaskSet::all(), |_| {});
context.subscribe(InterestMaskSet::SINK | InterestMaskSet::SOURCE, |_| {});
}
fn update_inputs(&self, widgets: &AppWidgets) {