GNOME Bugzilla – Bug 770218
Sometimes "Enable Wi-Fi" toggle is checked when it's actually soft blocked by rfkill.
Last modified: 2016-08-30 14:06:51 UTC
This bug can be more easily to be reproduced when there's no active wireless connection. After rfkill status changed, nm-applet refresh its menu by receiving "state-changed" signal, but wireless_enabled_cb() in libnm/nm-manager.c may be called after the signal. If that's the case, nm-applet will get wrong status from nm_client_networking_get_enabled(), because wireless_enabled is not being update yet.
Created attachment 333861 [details] [review] A patch to fix this issue.
fixed: master: https://git.gnome.org/browse/network-manager-applet/commit/?id=c7533cfcd9c761a152a66f608808187df3155521 nm-1-4: https://git.gnome.org/browse/network-manager-applet/commit/?id=28cba2299dae50ebe1a1ef156c288fb415059b97