mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-17 02:22:17 +00:00
ENH: add a column at history window
Change-Id: I157c1e412b562af0f2ce7ed6998c59cc3bcc3ab3
This commit is contained in:
@@ -326,11 +326,11 @@ void CaliPASaveAutoPanel::save_to_result_from_widgets(wxWindow* window, bool* ou
|
||||
msg_dlg.ShowModal();
|
||||
*out_is_valid = false;
|
||||
}
|
||||
else if (name.Length() > 20) {
|
||||
MessageDialog msg_dlg(nullptr, _L("The name cannot exceed 20 characters."), wxEmptyString, wxICON_WARNING | wxOK);
|
||||
msg_dlg.ShowModal();
|
||||
*out_is_valid = false;
|
||||
}
|
||||
//else if (name.Length() > 20) {
|
||||
// MessageDialog msg_dlg(nullptr, _L("The name cannot exceed 20 characters."), wxEmptyString, wxICON_WARNING | wxOK);
|
||||
// msg_dlg.ShowModal();
|
||||
// *out_is_valid = false;
|
||||
//}
|
||||
m_calib_results[tray_id].name = name.ToStdString();
|
||||
}
|
||||
|
||||
@@ -468,11 +468,11 @@ bool CaliPASaveManualPanel::get_result(PACalibResult& out_result) {
|
||||
msg_dlg.ShowModal();
|
||||
return false;
|
||||
}
|
||||
else if (name.Length() > 20) {
|
||||
MessageDialog msg_dlg(nullptr, _L("The name cannot exceed 20 characters."), wxEmptyString, wxICON_WARNING | wxOK);
|
||||
msg_dlg.ShowModal();
|
||||
return false;
|
||||
}
|
||||
//else if (name.Length() > 20) {
|
||||
// MessageDialog msg_dlg(nullptr, _L("The name cannot exceed 20 characters."), wxEmptyString, wxICON_WARNING | wxOK);
|
||||
// msg_dlg.ShowModal();
|
||||
// return false;
|
||||
//}
|
||||
|
||||
out_result.k_value = k;
|
||||
out_result.name = name.ToStdString();
|
||||
|
||||
Reference in New Issue
Block a user