mirror of
https://git.mirrors.martin98.com/https://github.com/bambulab/BambuStudio.git
synced 2025-08-18 05:55:55 +08:00
ENH: some fix of previous commit
fix for I5cabae467c62391156e7af1fb99afc0b18400fb6 Change-Id: Ib8bf0bd09ad284808ce8343d4b420726dde3f393
This commit is contained in:
parent
135767f5c0
commit
5c05bd2698
@ -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() == 7) { obj->command_axis_control("X", 1.0, 1.0f, 3000); }
|
||||||
if (event.GetInt() == 8) {
|
if (event.GetInt() == 8) {
|
||||||
if (axis_go_home_dlg == nullptr) {
|
if (axis_go_home_dlg == nullptr) {
|
||||||
axis_go_home_dlg = new SecondaryCheckDialog(this->GetParent(), wxID_ANY, _L("Auto 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 trigger auto homing?"));
|
axis_go_home_dlg->update_text(_L("Are you sure you want to home now?"));
|
||||||
axis_go_home_dlg->m_button_ok->SetLabel(_L("Homing"));
|
axis_go_home_dlg->m_button_ok->SetLabel(_L("Home"));
|
||||||
axis_go_home_dlg->Bind(EVT_SECONDARY_CHECK_CONFIRM, [this](wxCommandEvent& e) {
|
axis_go_home_dlg->Bind(EVT_SECONDARY_CHECK_CONFIRM, [this](wxCommandEvent& e) {
|
||||||
if (obj) {
|
if (obj) {
|
||||||
BOOST_LOG_TRIVIAL(info) << "Axis have go home";
|
BOOST_LOG_TRIVIAL(info) << "Axis have go home";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user