Skip to content

status/network: Generalize code to hide subtitle

Commit 9d75d777 introduced code to hide the subtitle of the quick setting toggle when it matches the title of the toggle. That's because NetworkManager tries to make the network names more palatable on its own, and reports that the name of single wired networks is "Wired" even if it may have another name.

What that commit failed to account for, however, is that there are other circumstances where we end up with a subtitle is exactly the same of the title. For example, when turning off Wi-Fi or mobile broadband connections.

The behaviour of commit 9d75d777 is safe enough to be applied on other device-backed connections, so do it.

Merge request reports