mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-29 15:03:09 +00:00
kcms/wifi: Fix toggle not updating the first time
Fixes https://invent.kde.org/plasma/plasma-mobile/-/issues/363
This commit is contained in:
parent
8f9db42e8f
commit
1dfcda39d3
1 changed files with 5 additions and 5 deletions
|
|
@ -86,7 +86,7 @@ SimpleKCM {
|
||||||
id: wifiSwitch
|
id: wifiSwitch
|
||||||
text: i18n("Wi-Fi")
|
text: i18n("Wi-Fi")
|
||||||
checked: enabledConnections.wirelessEnabled
|
checked: enabledConnections.wirelessEnabled
|
||||||
onClicked: {
|
onCheckedChanged: {
|
||||||
handler.enableWireless(checked);
|
handler.enableWireless(checked);
|
||||||
checked = Qt.binding(() => enabledConnections.wirelessEnabled);
|
checked = Qt.binding(() => enabledConnections.wirelessEnabled);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue