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

@ -24,7 +24,7 @@ use cosmic::{
widget::{button, divider, icon, scrollable, text},
};
use futures::FutureExt;
use std::{collections::HashMap, sync::LazyLock, time::Duration};
use std::{collections::HashMap, time::Duration};
use tokio::sync::mpsc::Sender;
use crate::{
@ -63,6 +63,7 @@ impl CosmicBluetoothApplet {
}
#[derive(Debug, Clone)]
#[allow(dead_code)]
enum Message {
TogglePopup,
CloseRequested(window::Id),
@ -145,7 +146,7 @@ impl cosmic::Application for CosmicBluetoothApplet {
}
Message::BluetoothEvent(e) => match e {
BluerEvent::RequestResponse {
req,
req: _,
state,
err_msg,
} => {

View file

@ -149,8 +149,6 @@ pub fn bluetooth_subscription<I: 'static + Hash + Copy + Send + Sync + Debug>(
},
BluerSessionEvent::AgentEvent(e) => BluerEvent::AgentEvent(e),
_ => return,
};
_ = output.send(message).await;
@ -199,6 +197,7 @@ pub enum BluerRequest {
}
#[derive(Debug, Clone)]
#[allow(dead_code)]
pub enum BluerEvent {
RequestResponse {
req: BluerRequest,