diff --git a/js/ui/status/network.js b/js/ui/status/network.js index 6d21e2d59..571231d7a 100644 --- a/js/ui/status/network.js +++ b/js/ui/status/network.js @@ -1223,7 +1223,9 @@ const NMWirelessDeviceItem = GObject.registerClass({ const {network: net} = item; item.visible = (hasWindows || net.hasConnections() || net.canAutoconnect()) && - nVisible++ < MAX_VISIBLE_NETWORKS; + nVisible < MAX_VISIBLE_NETWORKS; + if (item.visible) + nVisible++; } }