mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-18 07:34:54 +00:00
network: allow disconnecting while activation is in progress
While connecting, the item should read "Turn Off", not "Connect". To do so, change the meaning of isActive() to be really "not isOff()" https://bugzilla.gnome.org/show_bug.cgi?id=706262
This commit is contained in:
parent
22b2ccd83d
commit
6fbe765636
1 changed files with 2 additions and 2 deletions
|
|
@ -104,7 +104,7 @@ const NMConnectionItem = new Lang.Class({
|
|||
if (this._activeConnection == null)
|
||||
return false;
|
||||
|
||||
return this._activeConnection.state == NetworkManager.ActiveConnectionState.ACTIVATED;
|
||||
return this._activeConnection.state <= NetworkManager.ActiveConnectionState.ACTIVATED;
|
||||
},
|
||||
|
||||
_sync: function() {
|
||||
|
|
@ -1083,7 +1083,7 @@ const NMVPNConnectionItem = new Lang.Class({
|
|||
if (this._activeConnection == null)
|
||||
return false;
|
||||
|
||||
return this._activeConnection.vpn_state == NetworkManager.VPNConnectionState.ACTIVATED;
|
||||
return this._activeConnection.vpn_state != NetworkManager.VPNConnectionState.DISCONNECTED;
|
||||
},
|
||||
|
||||
_getStatus: function() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue