From caeca49c2e1f370a93fba94c12930bcfc8c92aac Mon Sep 17 00:00:00 2001 From: Nicolas Mailloux Date: Mon, 6 Sep 2021 15:14:32 -0400 Subject: [PATCH] connectToNetwork: save Wi-Fi credentials --- functions.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/functions.h b/functions.h index d9cd9dd..ccfa0bd 100644 --- a/functions.h +++ b/functions.h @@ -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 {