Fix for "Import config bundle with physical printers" (#5393)
This commit is contained in:
parent
3cbb19bd73
commit
9892394eb0
@ -1487,6 +1487,12 @@ bool PhysicalPrinter::delete_preset(const std::string& preset_name)
|
||||
return preset_names.erase(preset_name) > 0;
|
||||
}
|
||||
|
||||
PhysicalPrinter::PhysicalPrinter(const std::string& name, const DynamicPrintConfig& default_config) :
|
||||
name(name), config(default_config)
|
||||
{
|
||||
update_from_config(config);
|
||||
}
|
||||
|
||||
PhysicalPrinter::PhysicalPrinter(const std::string& name, const DynamicPrintConfig &default_config, const Preset& preset) :
|
||||
name(name), config(default_config)
|
||||
{
|
||||
|
@ -560,7 +560,7 @@ namespace PresetUtils {
|
||||
class PhysicalPrinter
|
||||
{
|
||||
public:
|
||||
PhysicalPrinter(const std::string& name, const DynamicPrintConfig &default_config) : name(name), config(default_config) {}
|
||||
PhysicalPrinter(const std::string& name, const DynamicPrintConfig &default_config);
|
||||
PhysicalPrinter(const std::string& name, const DynamicPrintConfig &default_config, const Preset& preset);
|
||||
void set_name(const std::string &name);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user