mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2025-02-11 08:00:54 +01:00
![Andrew Zaborowski](/assets/img/avatar_default.png)
The Gtk.Switch representing the p2p.Device's Enabled property should use the "delayed state change" logic as described in Gtk.Switch docs, i.e. we need to use .set_state() instead of .set_active() when we get confirmation of the property having changed its value in the PropertiesChanged handler. The ::active property is automatically changed by Gtk.Switch on user input. This way the UI gives visual feedback of when the device enable/disable op starts and ends (or fails).