FIX: update the bind control

jira: [STUDIO-11634]
Change-Id: I36eeb751f0fbc3ddccea09cd6f8892028d8b7b7d
(cherry picked from commit 9c909f65244a2ec658d90c34e2b42a996d1ed766)
This commit is contained in:
xin.zhang
2025-04-22 11:43:56 +08:00
committed by Noisyfox
parent e993a4cab8
commit b3a834c3c6

View File

@@ -1150,7 +1150,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();
});
@@ -1225,7 +1227,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();
});
}