NetworkMenu: place network items in the right position
_createNetworkItem was always appending access point at the end of the menu when their position was < 5 (NUM_VISIBLE_NETWORKS), ignoring the presence or absence of _overflowItem, which thus ended in the middle of the network list. Fix that. https://bugzilla.gnome.org/show_bug.cgi?id=652313
This commit is contained in:
parent
c450120409
commit
4132ccae33
@ -1531,7 +1531,7 @@ NMDeviceWireless.prototype = {
|
||||
}));
|
||||
}
|
||||
if (position < NUM_VISIBLE_NETWORKS)
|
||||
this.section.addMenuItem(apObj.item);
|
||||
this.section.addMenuItem(apObj.item, position);
|
||||
else {
|
||||
if (!this._overflowItem) {
|
||||
this._overflowItem = new PopupMenu.PopupSubMenuMenuItem(_("More..."));
|
||||
|
Loading…
Reference in New Issue
Block a user