Mac OS X: advanced options. offer to prefill system wifi PSK

Offer to prefill the wifi password of the system running
Imager, like we do on Windows.

Ask user first if that is desired, as it does cause OS X to
generate a prompt asking for admin password.
This commit is contained in:
Floris Bos 2021-05-04 22:51:08 +02:00
parent b57da413a6
commit e2296deb1a
2 changed files with 30 additions and 0 deletions

View file

@ -438,6 +438,10 @@ Popup {
fieldWifiPassword.text = imageWriter.getPSK(fieldWifiSSID.text)
if (fieldWifiPassword.text.length) {
chkShowPassword.checked = false
if (Qt.platform.os == "osx") {
/* User indicated wifi must be prefilled */
chkWifi.checked = true
}
}
}
}