chore: align applets with local stack
Some checks failed
Continuous Integration / linting (push) Has been cancelled
Continuous Integration / formatting (push) Has been cancelled

This commit is contained in:
Lionel DARNIS 2026-05-23 20:49:24 +02:00
parent 1c7143af97
commit 6c24edfae2
39 changed files with 165 additions and 313 deletions

View file

@ -20,14 +20,14 @@ use cosmic::{
window,
},
surface, theme,
widget::{Column, button, cards, container, divider, icon, scrollable, space, text, toggler},
widget::{Column, button, cards, container, divider, icon, scrollable, text, toggler},
};
use cosmic::iced::futures::executor::block_on;
use cosmic_notifications_config::NotificationsConfig;
use cosmic_notifications_util::{ActionId, Image, Notification};
use std::{borrow::Cow, collections::HashMap, path::PathBuf, sync::LazyLock};
use std::{borrow::Cow, collections::HashMap};
use subscriptions::notifications::{self, NotificationsAppletProxy};
use tokio::sync::mpsc::Sender;
use tracing::info;
@ -65,6 +65,7 @@ impl Notifications {
}
#[derive(Debug, Clone)]
#[allow(dead_code)]
enum Message {
TogglePopup,
CloseRequested(window::Id),
@ -279,7 +280,7 @@ impl cosmic::Application for Notifications {
}
}
Message::CardsToggled(name, expanded) => {
let id = if let Some((id, _, n_expanded, ..)) = self
let _id = if let Some((id, _, n_expanded, ..)) = self
.cards
.iter_mut()
.find(|c| c.1.iter().any(|notif| name == notif.app_name))