mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-13 01:37:53 -06:00
Fixed a bug in a printer preset updating
This commit is contained in:
parent
b2f10ec864
commit
6f0efd1168
1 changed files with 1 additions and 1 deletions
|
@ -2596,7 +2596,7 @@ void Tab::select_preset(std::string preset_name)
|
||||||
// The preset will be switched to a different, compatible preset, or the '-- default --'.
|
// The preset will be switched to a different, compatible preset, or the '-- default --'.
|
||||||
if (pu.technology == new_printer_technology)
|
if (pu.technology == new_printer_technology)
|
||||||
m_dependent_tabs.emplace_back(pu.tab_type);
|
m_dependent_tabs.emplace_back(pu.tab_type);
|
||||||
if (pu.old_preset_dirty)
|
if (pu.old_preset_dirty && !pu.new_preset_compatible)
|
||||||
pu.presets->discard_current_changes();
|
pu.presets->discard_current_changes();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue