mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-26 14:23:09 +00:00
statusbar: Don't show SignalStrengthIndicator if mobile data is being used
Fixes https://invent.kde.org/plasma/plasma-mobile/-/issues/142
This commit is contained in:
parent
0bc1607893
commit
58afb6be1b
1 changed files with 6 additions and 0 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue