Send the Shown Error Code From the Printer Error Dialog's Buttons (#17937)

The m_error_code member was never assigned, so the dialog's action buttons
sent an indeterminate code to the printer and the repeat check in
show_error_code compared against it. It is now initialised to 0 and set when
the dialog shows a code, as BambuStudio does.
This commit is contained in:
HanifKoh authored and GitHub committed 2026-11-28 02:30:08 +08:00
1 parent f4e6ed6ac9
commit 2cfda4e4ec
2 files changed
+2 -1

No files matched your search

+1
View File
@@ -373,6 +373,7 @@ static const std::unordered_set<std::string> s_jump_liveview_error_codes = { "03
wxString DeviceErrorDialog::show_error_code(int error_code)
{
if (m_error_code == error_code) { return wxEmptyString;}
m_error_code = error_code;
if (wxGetApp().get_hms_query()->is_internal_error(m_obj, error_code)) { return wxEmptyString;}
/* error code str*/
+1 -1
View File
@@ -117,7 +117,7 @@ protected:
private:
MachineObject* m_obj;
int m_error_code;
int m_error_code = 0;
std::unordered_set<Button*> m_used_button;
wxWebRequest web_request;