FIX: [STUDIO-2207] update_compatible on load user presets
Change-Id: Id410c9e0ec68031c0517285daf8a24b998ba2eda
This commit is contained in:
parent
81dea77932
commit
5c61c834b0
|
@ -1116,7 +1116,7 @@ void PresetCollection::load_presets(
|
|||
std::sort(m_presets.begin() + m_num_default_presets, m_presets.end());
|
||||
//BBS: add config related logs
|
||||
BOOST_LOG_TRIVIAL(debug) << __FUNCTION__ << boost::format(": loaded %1% presets from %2%, type %3%")%presets_loaded.size() %dir %Preset::get_type_string(m_type);
|
||||
this->select_preset(first_visible_idx());
|
||||
//this->select_preset(first_visible_idx());
|
||||
if (! errors_cummulative.empty())
|
||||
throw Slic3r::RuntimeError(errors_cummulative);
|
||||
}
|
||||
|
|
|
@ -537,6 +537,8 @@ PresetsConfigSubstitutions PresetBundle::load_user_presets(std::string user, For
|
|||
errors_cummulative += err.what();
|
||||
}
|
||||
if (!errors_cummulative.empty()) throw Slic3r::RuntimeError(errors_cummulative);
|
||||
this->update_multi_material_filament_presets();
|
||||
this->update_compatible(PresetSelectCompatibleType::Never);
|
||||
return PresetsConfigSubstitutions();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue