Commit 58afb6be authored by Devin Lin's avatar Devin Lin 🎨
Browse files

statusbar: Don't show SignalStrengthIndicator if mobile data is being used

Fixes #142
parent 0bc16078
Pipeline #217910 passed with stage
in 1 minute and 9 seconds
......@@ -17,6 +17,9 @@ Item {
required property InternetIndicator internetIndicator
// check if the internet indicator icon is a mobile data related one
readonly property bool isInternetIndicatorMobileData: internetIndicator.icon.startsWith('network-mobile-')
property bool showLabel: true
property real textPixelSize: PlasmaCore.Units.gridUnit * 0.6
......@@ -32,6 +35,9 @@ Item {
height: parent.height
source: provider.icon
// don't show mobile indicator icon if the networkmanager one is already showing
visible: !isInternetIndicatorMobileData
}
PlasmaComponents.Label {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment