[gnome-shell] NetworkMenu/NMDeviceWireless: use the device state instead of active connection state
- From: Giovanni Campagna <gcampagna src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] NetworkMenu/NMDeviceWireless: use the device state instead of active connection state
- Date: Thu, 3 Oct 2013 14:07:38 +0000 (UTC)
commit 843f076225570bf0410d6b00562e2cbcaf2bf0ae
Author: Giovanni Campagna <gcampagna src gnome org>
Date: Wed Oct 2 16:53:38 2013 +0200
NetworkMenu/NMDeviceWireless: use the device state instead of active connection state
Since we connect to signals for that, we need to sync on that, or
we can miss a notification.
https://bugzilla.gnome.org/show_bug.cgi?id=709043
js/ui/status/network.js | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/js/ui/status/network.js b/js/ui/status/network.js
index 2a830c8..c78c669 100644
--- a/js/ui/status/network.js
+++ b/js/ui/status/network.js
@@ -1064,7 +1064,8 @@ const NMDeviceWireless = new Lang.Class({
},
getIndicatorIcon: function() {
- if (this._device.active_connection.state == NetworkManager.ActiveConnectionState.ACTIVATING)
+ if (this._device.state >= NetworkManager.DeviceState.PREPARE &&
+ this._device.state < NetworkManager.DeviceState.ACTIVATED)
return 'network-wireless-acquiring-symbolic';
let ap = this._device.active_access_point;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]