From 58afb6be1b02ff44edbefc2adfb709a48ec3d2e9 Mon Sep 17 00:00:00 2001 From: Devin Lin Date: Sun, 14 Aug 2022 11:42:11 -0400 Subject: [PATCH] statusbar: Don't show SignalStrengthIndicator if mobile data is being used Fixes https://invent.kde.org/plasma/plasma-mobile/-/issues/142 --- .../qml/statusbar/indicators/SignalStrengthIndicator.qml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/components/mobileshell/qml/statusbar/indicators/SignalStrengthIndicator.qml b/components/mobileshell/qml/statusbar/indicators/SignalStrengthIndicator.qml index f7179752..4fe42cdc 100644 --- a/components/mobileshell/qml/statusbar/indicators/SignalStrengthIndicator.qml +++ b/components/mobileshell/qml/statusbar/indicators/SignalStrengthIndicator.qml @@ -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 {