FIX: update the bind control

jira: [STUDIO-11634]
Change-Id: I36eeb751f0fbc3ddccea09cd6f8892028d8b7b7d
This commit is contained in:
xin.zhang 2025-04-22 11:43:56 +08:00 committed by Lane.Wei
parent 16d82134de
commit 9c909f6524
1 changed files with 6 additions and 2 deletions

View File

@ -1141,7 +1141,9 @@ void PrintErrorDialog::init_button_list()
init_button(CONTINUE, _L("Finished, Continue"));
m_button_list[CONTINUE]->Bind(wxEVT_LEFT_DOWN, [this](wxMouseEvent& e) {
post_event(wxCommandEvent(EVT_SECONDARY_CHECK_DONE));
wxCommandEvent evt(EVT_ERROR_DIALOG_BTN_CLICKED);
evt.SetInt(CONTINUE);
post_event(evt);
e.Skip();
});
@ -1216,7 +1218,9 @@ void PrintErrorDialog::init_button_list()
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));
wxCommandEvent evt(EVT_ERROR_DIALOG_BTN_CLICKED);
evt.SetInt(RETRY_PROBLEM_SOLVED);
post_event(evt);
e.Skip();
});
}