[gnome-control-center] power: Fix wifi device state when opening power panel



commit f4232a2e68c4530c00b044432fa6377a22782952
Author: Michael Catanzaro <mcatanzaro gnome org>
Date:   Fri Sep 16 19:35:44 2016 -0500

    power: Fix wifi device state when opening power panel
    
    This toggle is always set to off when the panel is opened. We should
    check whether it's on or not when opening the panel. Currently we are
    only subscribed to changes, so we don't check the wifi state until it's
    toggled on or off after the panel has been opened the first time.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=771564

 panels/power/cc-power-panel.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/panels/power/cc-power-panel.c b/panels/power/cc-power-panel.c
index 8358121..db4e69a 100644
--- a/panels/power/cc-power-panel.c
+++ b/panels/power/cc-power-panel.c
@@ -1462,6 +1462,7 @@ nm_client_ready_cb (GObject *source_object,
   g_signal_connect (priv->nm_client, "device-removed",
                     G_CALLBACK (nm_device_changed), self);
 
+  nm_client_state_changed (priv->nm_client, NULL, self);
   nm_device_changed (priv->nm_client, NULL, self);
 }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]