Add buttons on shell notification

This commit is contained in:
ranfdev
2023-10-25 18:53:56 +02:00
parent 464cf0ba43
commit f99794b244
4 changed files with 80 additions and 54 deletions

View File

@ -288,6 +288,7 @@ impl From<Status> for u8 {
pub struct Notification {
pub title: String,
pub body: String,
pub actions: Vec<Action>,
}
pub trait NotificationProxy: Sync + Send {

View File

@ -97,6 +97,7 @@ impl output_channel::Server for NotifyForwarder {
.map(|x| x.as_str())
.unwrap_or("")
.to_string(),
actions: msg.actions,
};
info!("Showing notification");