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:
parent
4033a3dbca
commit
f4232a2e68
1 changed files with 1 additions and 0 deletions
|
@ -1462,6 +1462,7 @@ nm_client_ready_cb (GObject *source_object,
|
||||||
g_signal_connect (priv->nm_client, "device-removed",
|
g_signal_connect (priv->nm_client, "device-removed",
|
||||||
G_CALLBACK (nm_device_changed), self);
|
G_CALLBACK (nm_device_changed), self);
|
||||||
|
|
||||||
|
nm_client_state_changed (priv->nm_client, NULL, self);
|
||||||
nm_device_changed (priv->nm_client, NULL, self);
|
nm_device_changed (priv->nm_client, NULL, self);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue