Rework the wireless control panel section to respect non-wireless connec... #228
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
...tions
Fixes #4410 https://bugs.sugarlabs.org/ticket/4410
The 'Discard network history' button is peculiar to Sugar, and
is destructive to all non-wireless connections, despite being in
the 'Wireless' section of the control panel.
Relabel the code variables and functions to be specific to
wireless connections.
Recode the functions to exclude non-wireless connections.
Relabel the 'Radio' box instructions and 'Discard ...' button
to avoid confusion over their state and actions.
If wireless hardware is not present on the system, the 'Wireless'
section of the control panel is excluded.
The availability of wireless hardware is tested with the kernel's
sys filesystem because, with the radio disabled, wireless devices
are not exposed in the NetworkManager API and it would be
inappropriate to turn the radio on--just to see if one is present.
Wireless hardware present:
![network-withwifi](https://camo.githubusercontent.com/c33b2b67f76d7a6a8ad3c2817d53788c40196f8a69e675f2aa7d96a57d883c1f/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f343333353839372f313935383332312f39383962363230652d383231372d313165332d393739342d3337333063663636316431642e706e67)
No wireless hardware:
![network-nowifi](https://camo.githubusercontent.com/9570b542974a6bf33737b459e8da8a22bb98b142da270f502e832a9648ef3756/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f343333353839372f313935383334332f65323838623166302d383231372d313165332d383764342d3561656137313363663165622e706e67)