refactor(bluetooth): use channel subscription

This commit is contained in:
Ashley Wulber 2023-07-11 15:16:44 -04:00 committed by Jeremy Soller
parent 8d9bb40b1b
commit 7249b6af68
2 changed files with 54 additions and 46 deletions

View file

@ -523,7 +523,7 @@ impl Application for CosmicBluetoothApplet {
fn subscription(&self) -> Subscription<Message> {
Subscription::batch(vec![
self.applet_helper.theme_subscription(0).map(Message::Theme),
bluetooth_subscription(0).map(|(_, e)| Message::BluetoothEvent(e)),
bluetooth_subscription(0).map(Message::BluetoothEvent),
])
}