ENH:clear nozzle information

jira:[STUDIO-7050]

Change-Id: I15ca4973d09132ddb5cb5a56bedd795ba6976b27
This commit is contained in:
tao wang 2024-05-10 19:44:12 +08:00 committed by Lane.Wei
parent 20382e12ff
commit f461f8bbb1
1 changed files with 7 additions and 0 deletions

View File

@ -589,10 +589,17 @@ bool PrinterPartsDialog::Show(bool show)
nozzle_diameter_checkbox->Clear();
if (type.empty()) {
nozzle_type_checkbox->SetValue(wxEmptyString);
nozzle_diameter_checkbox->SetValue(wxEmptyString);
nozzle_type_checkbox->Disable();
nozzle_diameter_checkbox->Disable();
return DPIDialog::Show(show);
}
else {
nozzle_type_checkbox->Enable();
nozzle_diameter_checkbox->Enable();
}
last_nozzle_type = type;