ENH: some fix of previous commit

fix for I5cabae467c62391156e7af1fb99afc0b18400fb6

Change-Id: Ib8bf0bd09ad284808ce8343d4b420726dde3f393
This commit is contained in:
zhimin.zeng 2024-12-12 18:18:34 +08:00 committed by lane.wei
parent 135767f5c0
commit 5c05bd2698

View File

@ -3324,9 +3324,9 @@ void StatusPanel::on_axis_ctrl_xy(wxCommandEvent &event)
if (event.GetInt() == 7) { obj->command_axis_control("X", 1.0, 1.0f, 3000); }
if (event.GetInt() == 8) {
if (axis_go_home_dlg == nullptr) {
axis_go_home_dlg = new SecondaryCheckDialog(this->GetParent(), wxID_ANY, _L("Auto homing"));
axis_go_home_dlg->update_text(_L("Are you sure you want to trigger auto homing?"));
axis_go_home_dlg->m_button_ok->SetLabel(_L("Homing"));
axis_go_home_dlg = new SecondaryCheckDialog(this->GetParent(), wxID_ANY, _L("Axis go home"));
axis_go_home_dlg->update_text(_L("Are you sure you want to home now?"));
axis_go_home_dlg->m_button_ok->SetLabel(_L("Home"));
axis_go_home_dlg->Bind(EVT_SECONDARY_CHECK_CONFIRM, [this](wxCommandEvent& e) {
if (obj) {
BOOST_LOG_TRIVIAL(info) << "Axis have go home";