From 6d6b38ac46a0513b12e59cbe41bbec90483521b1 Mon Sep 17 00:00:00 2001 From: Devin Lin Date: Sat, 12 Feb 2022 23:08:01 -0500 Subject: [PATCH] quicksettings: Add status for mobile data not being available --- .../qml/actiondrawer/quicksettings/SettingsModel.qml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/components/mobileshell/qml/actiondrawer/quicksettings/SettingsModel.qml b/components/mobileshell/qml/actiondrawer/quicksettings/SettingsModel.qml index 0999f5b4..7849645b 100644 --- a/components/mobileshell/qml/actiondrawer/quicksettings/SettingsModel.qml +++ b/components/mobileshell/qml/actiondrawer/quicksettings/SettingsModel.qml @@ -70,6 +70,9 @@ MobileShell.QuickSettingsModel { MobileShell.QuickSetting { text: i18n("Mobile Data") icon: "network-modem" + status: PlasmaMM.SignalIndicator.mobileDataSupported + ? (enabled ? i18n("On") : i18n("Off")) + : i18n("Not Available") settingsCommand: "plasma-open-settings kcm_mobile_broadband" enabled: PlasmaMM.SignalIndicator.mobileDataEnabled function toggle() {