mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-07 15:07:31 -06:00
FIX: unload default user presets
Change-Id: I55e289708603f06263a64d4cfbfd1db596fdc864
This commit is contained in:
parent
87abd65ea4
commit
fd787adf6b
2 changed files with 6 additions and 6 deletions
|
@ -866,7 +866,7 @@ void PresetBundle::remove_users_preset(AppConfig &config, std::map<std::string,
|
|||
std::string printer_selected_preset_name = printers.get_selected_preset().name;
|
||||
bool need_reset_printer_preset = false;
|
||||
for (auto it = printers.begin(); it != printers.end();) {
|
||||
if (it->is_user() && !it->user_id.empty() && it->user_id.compare(preset_folder_user_id) == 0 && check_removed(*it)) {
|
||||
if (it->is_user() && it->user_id.compare(preset_folder_user_id) == 0 && check_removed(*it)) {
|
||||
BOOST_LOG_TRIVIAL(debug) << __FUNCTION__ << boost::format(":printers erase %1%, type %2%, user_id %3%") % it->name % Preset::get_type_string(it->type) % it->user_id;
|
||||
if (it->name == printer_selected_preset_name)
|
||||
need_reset_printer_preset = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue