mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-08-01 17:24:48 +00:00
kcms/hotspot: fix switch
This commit is contained in:
parent
1e2847ef96
commit
f47ba93952
1 changed files with 7 additions and 2 deletions
|
|
@ -17,15 +17,20 @@ SimpleKCM {
|
||||||
id: handler
|
id: handler
|
||||||
}
|
}
|
||||||
|
|
||||||
|
PlasmaNM.WirelessStatus {
|
||||||
|
id: wirelessStatus
|
||||||
|
}
|
||||||
|
|
||||||
Kirigami.FormLayout {
|
Kirigami.FormLayout {
|
||||||
Controls.Switch {
|
Controls.Switch {
|
||||||
id: hotspotToggle
|
id: hotspotToggle
|
||||||
Kirigami.FormData.label: i18n("Enabled:")
|
Kirigami.FormData.label: i18n("Enabled:")
|
||||||
|
checked: wirelessStatus.hotspotSSID.length !== 0
|
||||||
onToggled: {
|
onToggled: {
|
||||||
if (hotspotToggle.checked) {
|
if (hotspotToggle.checked) {
|
||||||
handler.createHotspot()
|
handler.createHotspot();
|
||||||
} else {
|
} else {
|
||||||
handler.stopHotspot()
|
handler.stopHotspot();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue