mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2026-01-02 21:10:29 -07:00
FIX: update HMS to support multi-type machines
jira: [STUDIO-9582] Change-Id: I5ad4083d666db4237d355ac8bd8160afb8e8a35f (cherry picked from commit 954a27016953bcf4f07b2a3e14ac1f5faf68c644)
This commit is contained in:
parent
e785282ecf
commit
2cbf14fdfd
8 changed files with 186 additions and 122 deletions
|
|
@ -2775,15 +2775,14 @@ void StatusPanel::update_error_message()
|
|||
std::string print_error_str = std::string(buf);
|
||||
if (print_error_str.size() > 4) { print_error_str.insert(4, " "); }
|
||||
|
||||
wxString error_msg;
|
||||
bool is_errocode_exist = wxGetApp().get_hms_query()->query_print_error_msg(obj->print_error, error_msg);
|
||||
wxString error_msg = wxGetApp().get_hms_query()->query_print_error_msg(obj, obj->print_error);
|
||||
std::vector<int> used_button;
|
||||
wxString error_image_url = wxGetApp().get_hms_query()->query_print_error_url_action(obj->print_error, obj->dev_id, used_button);
|
||||
wxString error_image_url = wxGetApp().get_hms_query()->query_print_error_url_action(obj, obj->print_error, used_button);
|
||||
// special case
|
||||
if (print_error_str == "0300 8003" || print_error_str == "0300 8002" || print_error_str == "0300 800A") {
|
||||
used_button.emplace_back(PrintErrorDialog::PrintErrorButton::JUMP_TO_LIVEVIEW);
|
||||
}
|
||||
show_error_message(obj, is_errocode_exist, error_msg, print_error_str, error_image_url, used_button);
|
||||
show_error_message(obj, !error_msg.empty(), error_msg, print_error_str, error_image_url, used_button);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue