diff --git a/kcms/hotspot/package/contents/ui/main.qml b/kcms/hotspot/package/contents/ui/main.qml index 2e3e004b..67a562aa 100644 --- a/kcms/hotspot/package/contents/ui/main.qml +++ b/kcms/hotspot/package/contents/ui/main.qml @@ -17,15 +17,20 @@ SimpleKCM { id: handler } + PlasmaNM.WirelessStatus { + id: wirelessStatus + } + Kirigami.FormLayout { Controls.Switch { id: hotspotToggle Kirigami.FormData.label: i18n("Enabled:") + checked: wirelessStatus.hotspotSSID.length !== 0 onToggled: { if (hotspotToggle.checked) { - handler.createHotspot() + handler.createHotspot(); } else { - handler.stopHotspot() + handler.stopHotspot(); } } }