network applet: optional VPN list cap with overflow submenu (#13562)#13767
network applet: optional VPN list cap with overflow submenu (#13562)#13767araujorm wants to merge 1 commit into
Conversation
Best-practices scannerThis is a regex-based check for API usage that can pose security, performance or This check is not perfect and will not replace a normal review.Found 2 potential issue(s):
|
f3f45c9 to
cf55360
Compare
Fixed in latest push. |
Fixes #13562.
NMDeviceVPN._createSection lists every configured VPN inline regardless of count, unlike the wired, wireless, mobile broadband and WireGuard sections, which cap at NUM_VISIBLE_NETWORKS (5). With many VPN connections the menu exceeds the monitor height and the items below (Network Settings, Network Connections) become unreachable.
The patch adds a per-instance cap to NMDeviceVPN, exposed through two new settings:
When the switch is off the cap is Infinity, so the popup looks exactly like an unpatched Cinnamon 6.6.x. When on, items beyond the cap move into a "More" submenu, matching the existing behaviour of the other sections.
Tested on Fedora 44 (cinnamon-6.6.7-5.fc44) with 27 configured VPN connections.