Skip to content

Hide the wireless networks list when Wi-Fi is off - #1478

Open
LeandroPG19 wants to merge 1 commit into
pop-os:masterfrom
LeandroPG19:wifi-off-hides-networks
Open

Hide the wireless networks list when Wi-Fi is off#1478
LeandroPG19 wants to merge 1 commit into
pop-os:masterfrom
LeandroPG19:wifi-off-hides-networks

Conversation

@LeandroPG19

Copy link
Copy Markdown

The early return that skips the wireless section required a known VPN to be
present as well, so with Wi-Fi turned off and no VPN configured the list of
visible wireless networks was still built and shown. That is why the issue is
not reproducible on systems that have a VPN.

view_window now returns whenever Wi-Fi is off, and pushes the VPN section only
when there is one, which is what the airplane mode branch just above it already
does.

The VPN section that follows the wireless networks is only reachable with Wi-Fi
on now, so its wifi_enabled check is dropped.

Fixes #1470

  • I have disclosed use of any AI generated code in my commit messages.
  • I understand these changes in full and will be able to respond to review comments.
  • My change is accurately described in the commit message.
  • My contribution is tested and working as described.
  • I have read the Developer Certificate of Origin and certify my contribution under its conditions.

The early return that skips the wireless section also required a known VPN to
be present, so with Wi-Fi turned off and no VPN configured the list of visible
wireless networks was still built and shown. Return whenever Wi-Fi is off, and
push the VPN section only when there is one, which is what the airplane mode
branch above already does.

The VPN section that follows the wireless networks is now only reachable with
Wi-Fi on, so its `wifi_enabled` check is dropped.

Fixes pop-os#1470

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Signed-off-by: Leandro Pérez G. <leandropatodo@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Network] "Visible wireless networks" list still shows up when Wi-Fi is turned off (unless a VPN is configured)

1 participant