Verified Commit 7be181de authored by OyyoDams's avatar OyyoDams

Save recalbox.conf before applying wifi changes

parent ffd91dbd
......@@ -2,7 +2,7 @@
All notable changes to this project will be documented in this file.
This project adheres to [Semantic Versioning](http://semver.org/).
## [Unreleased]
## [6.0]
### Added
- Mame roms fullname in Netplay GUI
......@@ -11,6 +11,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
- Game not listed in lobby if password protected
- Restore scrapped folder display
- Changed popups handling for better stability
- Wifi options securely saved automatically
## [18.06.27] - 2018-06-27
### Added
......
......@@ -1258,6 +1258,7 @@ void GuiMenu::menuNetworkSettings(){
std::string newSSID = RecalboxConf::getInstance()->get("wifi.ssid");
std::string newKey = RecalboxConf::getInstance()->get("wifi.key");
RecalboxConf::getInstance()->saveRecalboxConf();
if (wifienabled) {
if (baseSSID != newSSID
|| baseKEY != newKey
......@@ -1276,7 +1277,6 @@ void GuiMenu::menuNetworkSettings(){
}
RecalboxConf::getInstance()->set("wifi.enabled", wifienabled ? "1" : "0");
RecalboxConf::getInstance()->saveRecalboxConf();
});
mWindow->pushGui(s);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment