[gnome-shell] NetworkMenu: hide the "Turn On" item when the rfkill is hardware blocked
- From: Giovanni Campagna <gcampagna src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] NetworkMenu: hide the "Turn On" item when the rfkill is hardware blocked
- Date: Tue, 8 Oct 2013 20:20:40 +0000 (UTC)
commit a6fb3acb42edb588eba40a65c8fd90062b15c8f8
Author: Giovanni Campagna <gcampagna src gnome org>
Date: Tue Oct 8 21:24:30 2013 +0200
NetworkMenu: hide the "Turn On" item when the rfkill is hardware blocked
If wifi is disabled in hardware, there is nothing we can do at
the sw level, so hide the menu item.
https://bugzilla.gnome.org/show_bug.cgi?id=709635
js/ui/status/network.js | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/js/ui/status/network.js b/js/ui/status/network.js
index 26aa816..598b5bb 100644
--- a/js/ui/status/network.js
+++ b/js/ui/status/network.js
@@ -1058,6 +1058,7 @@ const NMDeviceWireless = new Lang.Class({
_sync: function() {
this._toggleItem.label.text = this._client.wireless_enabled ? _("Turn Off") : _("Turn On");
+ this._toggleItem.actor.visible = this._client.wireless_hardware_enabled;
this.item.status.text = this._getStatus();
this.item.icon.icon_name = this._getMenuIcon();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]