ENH:Set the default nozzle diameter to 0.4

jira:[for nozzle]

Change-Id: I74a5c9b0460046496b897eae3d9f917ac1b99052
This commit is contained in:
tao wang 2024-04-22 10:27:10 +08:00 committed by Lane.Wei
parent b6154d4014
commit 924ba50bfc
1 changed files with 7 additions and 1 deletions

View File

@ -538,6 +538,8 @@ void PrinterPartsDialog::set_nozzle_type(wxCommandEvent& evt)
nozzle_diameter_checkbox->Append(wxString::Format(_L("%.1f"), diameter_list[i]));
}
nozzle_diameter_checkbox->SetSelection(0);
last_nozzle_type = type;
set_nozzle_diameter(evt);
}
@ -577,7 +579,11 @@ bool PrinterPartsDialog::Show(bool show)
CentreOnParent();
auto type = obj->nozzle_type;
auto diameter = round(obj->nozzle_diameter * 10) / 10;
auto diameter = 0.4f;
if (obj->nozzle_diameter > 0) {
diameter = round(obj->nozzle_diameter * 10) / 10;
}
nozzle_type_checkbox->Clear();
nozzle_diameter_checkbox->Clear();