mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-11 08:47:52 -06:00
PhysicalPrinterCollection: Use select_preset() instead of select_preset_by_name()
+ changed signature for select_preset()
This commit is contained in:
parent
299b783601
commit
a4c12b90f1
5 changed files with 23 additions and 30 deletions
|
@ -3100,7 +3100,7 @@ void Tab::select_preset(std::string preset_name, bool delete_current /*=false*/,
|
|||
if (!last_selected_ph_printer_name.empty() &&
|
||||
m_presets->get_edited_preset().name == PhysicalPrinter::get_preset_name(last_selected_ph_printer_name)) {
|
||||
// If preset selection was canceled and previously was selected physical printer, we should select it back
|
||||
m_preset_bundle->physical_printers.select_printer_by_name(last_selected_ph_printer_name);
|
||||
m_preset_bundle->physical_printers.select_printer(last_selected_ph_printer_name);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue