mirror of
https://github.com/Zedfrigg/ironbar.git
synced 2025-09-18 12:46:58 +02:00
fix(networkmanager): support late module initialisation
For example when a second monitor is connected while Ironbar is already running.
This commit is contained in:
parent
4594271c42
commit
226b32ce6a
3 changed files with 135 additions and 66 deletions
|
@ -1,13 +1,18 @@
|
|||
use crate::clients::networkmanager::dbus::{DeviceState, DeviceType};
|
||||
|
||||
#[derive(Debug, Clone)]
|
||||
pub enum Event {
|
||||
DeviceAdded {
|
||||
interface: String,
|
||||
},
|
||||
pub enum ClientToModuleEvent {
|
||||
DeviceStateChanged {
|
||||
interface: String,
|
||||
r#type: DeviceType,
|
||||
state: DeviceState,
|
||||
},
|
||||
DeviceRemoved {
|
||||
interface: String,
|
||||
},
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone)]
|
||||
pub enum ModuleToClientEvent {
|
||||
NewController,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue