mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-08-01 07:12:07 +00:00
Fix Crash when using m_ProfileJson (#79)
* Recover: Packaging Process * Update: Flutter 1222 * Fix: crash when recreate GUI * Fix Crash when using m_profile_json
This commit is contained in:
@@ -698,7 +698,7 @@ std::string AppConfig::load()
|
||||
auto it_app = m_storage.find("app");
|
||||
if (it_app != m_storage.end()) {
|
||||
auto it_region = it_app->second.find("region");
|
||||
if (it_region != it_app->second.end() && it_region->second == "China") {
|
||||
if (it_region != it_app->second.end() && (it_region->second == "China" || it_region->second == "")) {
|
||||
it_region->second = "Chinese Mainland";
|
||||
m_dirty = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user