1
0
Fork 0
mirror of https://github.com/Zedfrigg/ironbar.git synced 2025-04-19 19:34:24 +02:00

fix: client not setting initial state

This commit is contained in:
Reinout Meliesie 2024-06-05 01:54:44 +02:00
parent 43619528f8
commit c75de5cd3e
Signed by: zedfrigg
GPG key ID: 3AFCC06481308BC6

View file

@ -86,6 +86,12 @@ impl Client {
let mut primary_connection_type = proxy.primary_connection_type()?;
let mut wireless_enabled = proxy.wireless_enabled()?;
self.client_state.set(determine_state(
&primary_connection,
&primary_connection_type,
wireless_enabled,
));
for change in self.props_proxy.receive_properties_changed()? {
let args = change.args()?;
if args.interface_name != self.interface_name {