mirror of
https://github.com/Xetibo/ReSet.git
synced 2025-07-13 05:07:45 +02:00
fix: spinloop until listener ready
This commit is contained in:
parent
248fc9f526
commit
c2557a714f
3 changed files with 19 additions and 6 deletions
|
@ -426,6 +426,11 @@ pub fn start_event_listener(listeners: Arc<Listeners>, wifi_box: Arc<WifiBox>) {
|
|||
let imp = entry.1.imp();
|
||||
let mut connected = imp.connected.borrow_mut();
|
||||
*connected = imp.access_point.borrow().dbus_path == current_device.path;
|
||||
if *connected {
|
||||
imp.reset_wifi_connected.set_text("Connected");
|
||||
} else {
|
||||
imp.reset_wifi_connected.set_text("");
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue