chore: align applets with local stack

This commit is contained in:
Lionel DARNIS 2026-05-23 20:49:24 +02:00
parent bcc8072a3b
commit 82e00a3e16
37 changed files with 292 additions and 440 deletions

View file

@ -94,6 +94,7 @@ pub struct Window {
}
#[derive(Debug, Clone)]
#[allow(dead_code)]
pub enum Message {
TogglePopup,
CloseRequested(window::Id),
@ -361,7 +362,7 @@ impl cosmic::Application for Window {
}
fn subscription(&self) -> Subscription<Message> {
fn time_subscription(mut show_seconds: watch::Receiver<bool>) -> Subscription<Message> {
fn time_subscription(show_seconds: watch::Receiver<bool>) -> Subscription<Message> {
struct Wrapper {
inner: watch::Receiver<bool>,
id: &'static str,
@ -376,7 +377,7 @@ impl cosmic::Application for Window {
inner: show_seconds,
id: "time-sub",
},
|Wrapper { inner, id }| {
|Wrapper { inner, id: _ }| {
let mut show_seconds = inner.clone();
stream::channel(1, move |mut output: mpsc::Sender<Message>| async move {
// Mark this receiver's state as changed so that it always receives an initial