From f6e34a4f84d29cecff85ed76d02ffaf9e99e70ab Mon Sep 17 00:00:00 2001 From: "Mr. Athozus" Date: Sat, 27 Apr 2024 21:40:48 +0200 Subject: [PATCH] Show hotspot and strength when it is activated --- .../mobileshell/qml/statusbar/indicators/InternetIndicator.qml | 2 +- .../qml/statusbar/indicators/SignalStrengthIndicator.qml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/components/mobileshell/qml/statusbar/indicators/InternetIndicator.qml b/components/mobileshell/qml/statusbar/indicators/InternetIndicator.qml index 0acfd422..60c3d92f 100644 --- a/components/mobileshell/qml/statusbar/indicators/InternetIndicator.qml +++ b/components/mobileshell/qml/statusbar/indicators/InternetIndicator.qml @@ -17,7 +17,7 @@ Kirigami.Icon { // data - readonly property string icon: connectionIconProvider.connectionIcon + readonly property string icon: wirelessStatus.hotspotSSID.length !== 0 ? "network-wireless-hotspot" : connectionIconProvider.connectionIcon readonly property bool indicatorRunning: connectionIconProvider.connecting readonly property var networkStatus: PlasmaNM.NetworkStatus { diff --git a/components/mobileshell/qml/statusbar/indicators/SignalStrengthIndicator.qml b/components/mobileshell/qml/statusbar/indicators/SignalStrengthIndicator.qml index f987a290..e2d647f4 100644 --- a/components/mobileshell/qml/statusbar/indicators/SignalStrengthIndicator.qml +++ b/components/mobileshell/qml/statusbar/indicators/SignalStrengthIndicator.qml @@ -35,7 +35,7 @@ Item { source: MobileShell.SignalStrengthInfo.icon // don't show mobile indicator icon if the networkmanager one is already showing - visible: !isInternetIndicatorMobileData && MobileShell.SignalStrengthInfo.showIndicator + visible: (!isInternetIndicatorMobileData || wirelessStatus.hotspotSSID.length !== 0) && MobileShell.SignalStrengthInfo.showIndicator } PlasmaComponents.Label {