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:
parent
64efbe703a
commit
8460aa7d6a
@ -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;
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user