Fix of missing AppConfig::has_section before get_section in ConfigWizard.
This commit is contained in:
parent
99f3a3d54f
commit
fb2448fbe3
@ -3171,6 +3171,8 @@ bool ConfigWizard::priv::apply_config(AppConfig *app_config, PresetBundle *prese
|
||||
}
|
||||
else {
|
||||
auto changed = [app_config, &appconfig_new = std::as_const(this->appconfig_new)](const std::string& section_name) {
|
||||
if (!appconfig_new.has_section(section_name))
|
||||
return false;
|
||||
return (app_config->has_section(section_name) ? app_config->get_section(section_name) : std::map<std::string, std::string>()) != appconfig_new.get_section(section_name);
|
||||
};
|
||||
bool is_filaments_changed = changed(AppConfig::SECTION_FILAMENTS);
|
||||
|
Loading…
Reference in New Issue
Block a user