1
0
Fork 0
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:
Reinout Meliesie 2025-09-02 20:42:26 +02:00
commit 226b32ce6a
Signed by: zedfrigg
GPG key ID: 3AFCC06481308BC6
3 changed files with 135 additions and 66 deletions

View file

@ -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,
}