mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-11 17:39:00 +08:00
Fix for SPE-2056 : Wrong printer selection when add new logical printer but some physical printer is selected
This commit is contained in:
parent
82c53aef01
commit
e46c711fce
@ -1169,7 +1169,7 @@ void TabPresetComboBox::update()
|
|||||||
if (m_type == Preset::TYPE_PRINTER && m_preset_bundle->physical_printers.has_selection()) {
|
if (m_type == Preset::TYPE_PRINTER && m_preset_bundle->physical_printers.has_selection()) {
|
||||||
std::string sel_preset_name = m_preset_bundle->physical_printers.get_selected_printer_preset_name();
|
std::string sel_preset_name = m_preset_bundle->physical_printers.get_selected_printer_preset_name();
|
||||||
Preset* preset = m_collection->find_preset(sel_preset_name);
|
Preset* preset = m_collection->find_preset(sel_preset_name);
|
||||||
if (!preset)
|
if (!preset || m_collection->get_selected_preset_name() != sel_preset_name)
|
||||||
m_preset_bundle->physical_printers.unselect_printer();
|
m_preset_bundle->physical_printers.unselect_printer();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user