From f4232a2e68c4530c00b044432fa6377a22782952 Mon Sep 17 00:00:00 2001 From: Michael Catanzaro Date: Fri, 16 Sep 2016 19:35:44 -0500 Subject: [PATCH] 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 file changed, 1 insertion(+) diff --git a/panels/power/cc-power-panel.c b/panels/power/cc-power-panel.c index 8358121ad..db4e69a26 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); }