NetworkMenu: keep the connection list visible when connecting...
When a device is connecting, we can continue showing available connections and access points, as well as the active one with the dot. (Hiding was a remnant of when the device status was on a different menu item than the title) https://bugzilla.gnome.org/show_bug.cgi?id=646381
This commit is contained in:
parent
38219fec99
commit
38bcd52065
@ -557,8 +557,7 @@ NMDevice.prototype = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
_shouldShowConnectionList: function() {
|
_shouldShowConnectionList: function() {
|
||||||
return (this.device.state == NetworkManager.DeviceState.DISCONNECTED ||
|
return (this.device.state >= NetworkManager.DeviceState.DISCONNECTED);
|
||||||
this.device.state == NetworkManager.DeviceState.ACTIVATED);
|
|
||||||
},
|
},
|
||||||
|
|
||||||
_createSection: function() {
|
_createSection: function() {
|
||||||
@ -1809,14 +1808,9 @@ NMApplet.prototype = {
|
|||||||
if (a.default6)
|
if (a.default6)
|
||||||
default_ip6 = a;
|
default_ip6 = a;
|
||||||
|
|
||||||
if (a.state == NetworkManager.ActiveConnectionState.ACTIVATING) {
|
if (a.state == NetworkManager.ActiveConnectionState.ACTIVATING)
|
||||||
activating = a;
|
activating = a;
|
||||||
|
|
||||||
// don't set activating connections to devices, NMDevice:state-changed
|
|
||||||
// should take care of rebuilding the menu
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!a._primaryDevice) {
|
if (!a._primaryDevice) {
|
||||||
if (a._type != NetworkManager.SETTING_VPN_SETTING_NAME) {
|
if (a._type != NetworkManager.SETTING_VPN_SETTING_NAME) {
|
||||||
// find a good device to be considered primary
|
// find a good device to be considered primary
|
||||||
|
Loading…
Reference in New Issue
Block a user