feat: libcosmic iced 0.14 rebase

This commit is contained in:
Ashley Wulber 2026-03-17 16:56:55 -04:00 committed by GitHub
parent 0020132e63
commit cf7fc32adf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
47 changed files with 2731 additions and 1869 deletions

View file

@ -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: