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: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2613>
This commit is contained in:
Heiko Hösch 2022-12-21 08:13:31 +00:00 committed by Marge Bot
parent f323d85fc3
commit 35e2ac7a2a

View File

@ -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++;
}
}