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
This commit is contained in:
Michael Catanzaro 2016-09-16 19:35:44 -05:00 committed by Bastien Nocera
parent 4033a3dbca
commit f4232a2e68

View file

@ -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);
}