ENH: add action RETRY_PROBLEM_SOLVED
jira: [STUDIO-11634] Change-Id: I53d1f0cce4236b57101c65f90d05918f348ef508
This commit is contained in:
parent
1fd6374ab6
commit
51142db51c
|
@ -1213,6 +1213,12 @@ void PrintErrorDialog::init_button_list()
|
|||
post_event(evt);
|
||||
e.Skip();
|
||||
});
|
||||
|
||||
init_button(RETRY_PROBLEM_SOLVED, _L("Retry (problem solved)"));
|
||||
m_button_list[RETRY_PROBLEM_SOLVED]->Bind(wxEVT_LEFT_DOWN, [this](wxMouseEvent &e) {
|
||||
post_event(wxCommandEvent(EVT_SECONDARY_CHECK_DONE));
|
||||
e.Skip();
|
||||
});
|
||||
}
|
||||
|
||||
PrintErrorDialog::~PrintErrorDialog()
|
||||
|
|
|
@ -190,6 +190,8 @@ public:
|
|||
PROBLEM_SOLVED_RESUME = 28,
|
||||
STOP_BUZZER = 29,
|
||||
|
||||
RETRY_PROBLEM_SOLVED = 34,
|
||||
|
||||
ERROR_BUTTON_COUNT
|
||||
};
|
||||
PrintErrorDialog(
|
||||
|
|
|
@ -4685,6 +4685,10 @@ void StatusPanel::on_print_error_dlg_btn_clicked(wxCommandEvent& event)
|
|||
{
|
||||
obj->command_stop_buzzer();
|
||||
}
|
||||
else if (id == PrintErrorDialog::CONTINUE || id == PrintErrorDialog::RETRY_PROBLEM_SOLVED)
|
||||
{
|
||||
obj->command_ams_control("resume");
|
||||
}
|
||||
|
||||
if (m_print_error_dlg) { m_print_error_dlg->on_hide(); }
|
||||
if (m_print_error_dlg_no_action) { m_print_error_dlg_no_action->on_hide();}
|
||||
|
|
Loading…
Reference in New Issue