From 35e2ac7a2a185fe4c072ca271dde3b041a6ddec1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Heiko=20H=C3=B6sch?= Date: Wed, 21 Dec 2022 08:13:31 +0000 Subject: [PATCH] status/network: Work around xgettext ignoring translated strings xgettext quits parsing, when the "<"-operator follows the "++"-operator directly. Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/5820 Part-of: --- js/ui/status/network.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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++; } }