mirror of
				https://github.com/Zedfrigg/ironbar.git
				synced 2025-10-31 13:41:54 +01:00 
			
		
		
		
	Merge pull request #686 from JakeStanger/fix/notifications
fix(notifications): client broken by recent refactor
This commit is contained in:
		
				commit
				
					
						92c690dcd1
					
				
			
		
					 1 changed files with 4 additions and 3 deletions
				
			
		|  | @ -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<GetSubscribeData> 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, | ||||
|         } | ||||
|     } | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue