network: Make the Connect button insensitive when on the current network

https://bugzilla.gnome.org/show_bug.cgi?id=706136
This commit is contained in:
Jasper St. Pierre 2013-08-19 10:43:52 -04:00
parent 64efbe703a
commit 8460aa7d6a

View File

@ -627,7 +627,7 @@ const NMWirelessDialog = new Lang.Class({
}, },
_updateSensitivity: function() { _updateSensitivity: function() {
let connectSensitive = this._selectedNetwork != null; let connectSensitive = this._selectedNetwork && (this._selectedNetwork != this._activeNetwork);
this._connectButton.reactive = connectSensitive; this._connectButton.reactive = connectSensitive;
this._connectButton.can_focus = connectSensitive; this._connectButton.can_focus = connectSensitive;
}, },