From f819aec259cfe418f050c57eb51a236a95039b57 Mon Sep 17 00:00:00 2001 From: Jake Stanger Date: Sun, 4 Aug 2024 13:46:12 +0100 Subject: [PATCH] fix(notifications): client broken by recent refactor Fixes #674 --- src/clients/swaync/mod.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/clients/swaync/mod.rs b/src/clients/swaync/mod.rs index 495040b7..9b5c1161 100644 --- a/src/clients/swaync/mod.rs +++ b/src/clients/swaync/mod.rs @@ -10,11 +10,12 @@ use zbus::export::ordered_stream::OrderedStreamExt; use zbus::zvariant::Type; #[derive(Debug, Clone, Copy, Type, Deserialize)] +#[allow(dead_code)] pub struct Event { pub count: u32, pub dnd: bool, pub cc_open: bool, - // pub inhibited: bool, + pub inhibited: bool, } type GetSubscribeData = (bool, bool, u32, bool); @@ -22,12 +23,12 @@ type GetSubscribeData = (bool, bool, u32, bool); /// Converts the data returned from /// `get_subscribe_data` into an event for convenience. impl From for Event { - fn from((dnd, cc_open, count, _inhibited): (bool, bool, u32, bool)) -> Self { + fn from((dnd, cc_open, count, inhibited): (bool, bool, u32, bool)) -> Self { Self { count, dnd, cc_open, - // inhibited, + inhibited, } } }