From 9f3803fedcccb6bbef5d1b02f174cd24415024bb Mon Sep 17 00:00:00 2001 From: Ian Douglas Scott Date: Mon, 13 Jun 2022 18:43:35 -0700 Subject: [PATCH] Refresh inputs/outputs at start --- applets/cosmic-applet-audio/src/main.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/applets/cosmic-applet-audio/src/main.rs b/applets/cosmic-applet-audio/src/main.rs index 7d997433..7bed5f88 100644 --- a/applets/cosmic-applet-audio/src/main.rs +++ b/applets/cosmic-applet-audio/src/main.rs @@ -72,6 +72,8 @@ fn app(application: &Application) { if pa.context.get_state() == State::Ready { pa.context .subscribe(InterestMaskSet::SINK | InterestMaskSet::SOURCE, |_| {}); + refresh_output_tx.unbounded_send(()).expect("failed to send output refresh message"); + refresh_input_tx.unbounded_send(()).expect("failed to send output refresh message"); } })))); pa.borrow_mut()