NEW:optimizing error info for network requests

Change-Id: I8656c2f899b086b5ab52d94b7186e64df1625e3e
This commit is contained in:
tao wang 2023-05-04 17:52:22 +08:00 committed by Lane.Wei
parent 7b12dcb6ea
commit 8b490adc51
27 changed files with 1133 additions and 637 deletions

View file

@ -10501,6 +10501,17 @@ std::vector<std::string> Plater::get_colors_for_color_print(const GCodeProcessor
return colors;
}
void Plater::update_print_error_info(int code, std::string msg, std::string extra)
{
if (p->m_select_machine_dlg) {
p->m_select_machine_dlg->update_print_error_info(code, msg, extra);
}
if (p->m_send_to_sdcard_dlg) {
p->m_send_to_sdcard_dlg->update_print_error_info(code, msg, extra);
}
}
wxString Plater::get_project_filename(const wxString& extension) const
{
return p->get_project_filename(extension);