ENH:clear nozzle information
jira:[STUDIO-7050] Change-Id: I15ca4973d09132ddb5cb5a56bedd795ba6976b27
This commit is contained in:
parent
20382e12ff
commit
f461f8bbb1
|
@ -589,10 +589,17 @@ bool PrinterPartsDialog::Show(bool show)
|
||||||
nozzle_diameter_checkbox->Clear();
|
nozzle_diameter_checkbox->Clear();
|
||||||
|
|
||||||
if (type.empty()) {
|
if (type.empty()) {
|
||||||
|
nozzle_type_checkbox->SetValue(wxEmptyString);
|
||||||
|
nozzle_diameter_checkbox->SetValue(wxEmptyString);
|
||||||
|
|
||||||
nozzle_type_checkbox->Disable();
|
nozzle_type_checkbox->Disable();
|
||||||
nozzle_diameter_checkbox->Disable();
|
nozzle_diameter_checkbox->Disable();
|
||||||
return DPIDialog::Show(show);
|
return DPIDialog::Show(show);
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
nozzle_type_checkbox->Enable();
|
||||||
|
nozzle_diameter_checkbox->Enable();
|
||||||
|
}
|
||||||
|
|
||||||
last_nozzle_type = type;
|
last_nozzle_type = type;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue