connectToNetwork: save Wi-Fi credentials

This commit is contained in:
Nicolas Mailloux 2021-09-06 15:14:32 -04:00
parent f4141a4494
commit caeca49c2e

View file

@ -571,6 +571,9 @@ namespace {
QFile::remove("/run/wifi_connected_successfully");
connectionSuccessful = 1;
global::network::isConnected = true;
setDefaultWorkDir();
string_writeconfig(".config/17-wifi_connection_information/essid", essid_str);
string_writeconfig(".config/17-wifi_connection_information/passphrase", passphrase_str);
return true;
}
else {