Fix of #5450 - Wrong printer preset after loading 3mf project file when having multiple presets for one physical printer

This commit is contained in:
YuSanka 2020-12-15 12:09:03 +01:00
parent 82fe571cdc
commit 43581059ff
3 changed files with 10 additions and 2 deletions

View file

@ -701,6 +701,7 @@ public:
// If full_name doesn't contain name of selected preset, then select first preset in the list for this printer
void select_printer(const std::string& full_name);
void select_printer(const PhysicalPrinter& printer);
void select_printer(const std::string& printer_name, const std::string& preset_name);
bool has_selection() const;
void unselect_printer() ;
bool is_selected(ConstIterator it, const std::string &preset_name) const;