diff options
author | Matt Ranostay <matt.ranostay@konsulko.com> | 2019-02-28 02:47:35 -0800 |
---|---|---|
committer | Matt Ranostay <matt.ranostay@konsulko.com> | 2019-02-28 02:47:55 -0800 |
commit | c11aed3ce7e0ce34919ea5ef25165ab0fbdd3429 (patch) | |
tree | 71d15bd12ff85ba7cc71c43798c4a3ae41fbb9a9 | |
parent | c13650d862c94c08a546444802f90ddbb3e0692f (diff) |
settings: wifi: qml: redisplay dialog on incorrect passphase
Bug-AGL: SPEC-2183
Change-Id: Ia789a58b01d6df9e32d8f167e1f33ea19e1c37a2
Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
-rw-r--r-- | app/wifi/Wifi.qml | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/app/wifi/Wifi.qml b/app/wifi/Wifi.qml index b4f4485..f183b8d 100644 --- a/app/wifi/Wifi.qml +++ b/app/wifi/Wifi.qml @@ -99,6 +99,7 @@ SettingPage { } else { console.log("Connecting to ", ssid, " (", service, ")") networkNameText.font.italic = 1 + password.text = '' network.connect(service) } } @@ -130,8 +131,6 @@ SettingPage { onVisibleChanged: { if (visible) { password.forceActiveFocus() - } else { - password.text = '' } } @@ -163,7 +162,10 @@ SettingPage { } Button { text: 'Cancel' - onClicked: dialog.visible = false + onClicked: { + dialog.visible = false + password.text = '' + } } } } @@ -184,5 +186,10 @@ SettingPage { password.reqid = id dialog.visible = true } + + onInvalidPassphrase: { + console.log("Invalid passphrase for (", service, ")") + network.connect(service) + } } } |