audio: Don't recreate mpris proxies and streams

Fixes https://github.com/pop-os/cosmic-applets/issues/306 and should
overall be more correct and performant.
This commit is contained in:
Ian Douglas Scott 2024-04-03 20:45:30 -07:00 committed by Michael Murphy
parent 56d3a754e2
commit 1475f8f32b
3 changed files with 168 additions and 172 deletions

View file

@ -50,7 +50,7 @@ const PLAY: &str = "media-playback-start-symbolic";
pub fn run() -> cosmic::iced::Result {
localize();
cosmic::applet::run::<Audio>(true, ())
cosmic::applet::run::<Audio>(false, ())
}
#[derive(Default)]