feat: libcosmic iced 0.14 rebase
This commit is contained in:
parent
0020132e63
commit
cf7fc32adf
47 changed files with 2731 additions and 1869 deletions
|
|
@ -6,8 +6,9 @@ use iced_futures::Subscription;
|
|||
use std::collections::HashMap;
|
||||
|
||||
pub fn subscription() -> iced_futures::Subscription<bool> {
|
||||
Subscription::run_with_id(
|
||||
"airplane-mode",
|
||||
struct MyId;
|
||||
|
||||
Subscription::run_with(std::any::TypeId::of::<MyId>(), |_| {
|
||||
async {
|
||||
match rfkill::rfkill_updates() {
|
||||
Ok(updates) => updates.filter_map(|state| async {
|
||||
|
|
@ -25,8 +26,8 @@ pub fn subscription() -> iced_futures::Subscription<bool> {
|
|||
}
|
||||
}
|
||||
}
|
||||
.flatten_stream(),
|
||||
)
|
||||
.flatten_stream()
|
||||
})
|
||||
}
|
||||
|
||||
// Test that:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue