mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-26 14:23:09 +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
|
||||
}
|
||||
|
||||
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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue