[gnome-shell] network: Make the Connect button insensitive when on the current network



commit 8460aa7d6a138bcf1b3ab612e84c5897479a2169
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Mon Aug 19 10:43:52 2013 -0400

    network: Make the Connect button insensitive when on the current network
    
    https://bugzilla.gnome.org/show_bug.cgi?id=706136

 js/ui/status/network.js |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/js/ui/status/network.js b/js/ui/status/network.js
index a06a5ce..55ae01b 100644
--- a/js/ui/status/network.js
+++ b/js/ui/status/network.js
@@ -627,7 +627,7 @@ const NMWirelessDialog = new Lang.Class({
     },
 
     _updateSensitivity: function() {
-        let connectSensitive = this._selectedNetwork != null;
+        let connectSensitive = this._selectedNetwork && (this._selectedNetwork != this._activeNetwork);
         this._connectButton.reactive = connectSensitive;
         this._connectButton.can_focus = connectSensitive;
     },


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]