refactor(bluetooth): use channel subscription
This commit is contained in:
parent
8d9bb40b1b
commit
7249b6af68
2 changed files with 54 additions and 46 deletions
|
|
@ -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),
|
||||
])
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue