Bugfix: Loading of AppConfig from an alternate locations.

This commit is contained in:
Vojtech Bubnik 2021-12-15 10:30:15 +01:00
parent 14cb4a1314
commit b95a83aec1
3 changed files with 19 additions and 18 deletions
src/slic3r/GUI

View file

@ -992,8 +992,7 @@ bool GUI_App::check_older_app_config(Semver current_version, bool backup)
// This will tell later (when config folder structure is sure to exists) to copy files from m_older_data_dir_path
m_init_app_config_from_older = true;
// load app config from older file
app_config->set_loading_path((boost::filesystem::path(m_older_data_dir_path) / filename).string());
std::string error = app_config->load();
std::string error = app_config->load((boost::filesystem::path(m_older_data_dir_path) / filename).string());
if (!error.empty()) {
// Error while parsing config file. We'll customize the error message and rethrow to be displayed.
if (is_editor()) {