FIX: remove the unsupported nozzle diameter
jira: [STUDIO-10089] Change-Id: I8a7e13788bac103a60390dbc89c3d3b95cb79d2d
This commit is contained in:
parent
655373cb82
commit
8a7164dbc1
|
@ -615,6 +615,12 @@ bool MachineObject::get_printer_is_enclosed() const
|
|||
return DeviceManager::get_printer_is_enclosed(printer_type);
|
||||
}
|
||||
|
||||
bool MachineObject::is_series_o() const
|
||||
{
|
||||
const std::string& series = DeviceManager::get_printer_series(printer_type);
|
||||
return (series == "series_o");
|
||||
}
|
||||
|
||||
void MachineObject::reload_printer_settings()
|
||||
{
|
||||
print_json.load_compatible_settings("", "");
|
||||
|
|
|
@ -622,6 +622,9 @@ public:
|
|||
std::string get_printer_ams_type() const;
|
||||
bool get_printer_is_enclosed() const;
|
||||
|
||||
// check printer device series
|
||||
bool is_series_o() const;
|
||||
|
||||
void reload_printer_settings();
|
||||
|
||||
std::string printer_thumbnail_img;
|
||||
|
|
|
@ -794,7 +794,22 @@ void PrinterPartsDialog::on_dpi_changed(const wxRect& suggested_rect)
|
|||
|
||||
void PrinterPartsDialog::update_machine_obj(MachineObject* obj_)
|
||||
{
|
||||
if (!obj_)
|
||||
{
|
||||
return;
|
||||
}
|
||||
obj = obj_;
|
||||
|
||||
if (obj->is_series_o())
|
||||
{
|
||||
/*STUDIO-10089 there are only 0.2 stainless nozzle in O series*/
|
||||
nozzle_stainless_diameter_map[0] = 0.2;
|
||||
}
|
||||
else
|
||||
{
|
||||
nozzle_stainless_diameter_map[0] = 0.2;
|
||||
nozzle_stainless_diameter_map[1] = 0.4;
|
||||
}
|
||||
}
|
||||
|
||||
bool PrinterPartsDialog::Show(bool show)
|
||||
|
|
Loading…
Reference in New Issue