FIX: the open door check

jira: [STUDIO-10842]
Change-Id: I5b5f305afaaf7e20f1600cda677c231f41b2eb74
This commit is contained in:
xin.zhang 2025-03-13 11:18:54 +08:00 committed by lane.wei
parent 99045ae070
commit 1f6d8a8ef5
1 changed files with 7 additions and 6 deletions

View File

@ -53,13 +53,10 @@ PrintOptionsDialog::PrintOptionsDialog(wxWindow* parent)
});
m_cb_open_door->Bind(wxEVT_TOGGLEBUTTON, [this](wxCommandEvent &evt) {
if (m_cb_open_door->GetValue())
{
if (obj) { obj->command_set_door_open_check(MachineObject::DOOR_OPEN_CHECK_DISABLE); }
}
else
{
if (m_cb_open_door->GetValue()) {
if (obj) { obj->command_set_door_open_check(MachineObject::DOOR_OPEN_CHECK_ENABLE_WARNING); }
} else {
if (obj) { obj->command_set_door_open_check(MachineObject::DOOR_OPEN_CHECK_DISABLE); }
}
evt.Skip();
@ -278,6 +275,10 @@ void PrintOptionsDialog::UpdateOptionOpenDoorCheck(MachineObject *obj) {
m_cb_open_door->SetValue(false);
open_door_switch_board->Disable();
}
m_cb_open_door->Show();
text_open_door->Show();
open_door_switch_board->Show();
}
void PrintOptionsDialog::UpdateOptionSavePrintFileToStorage(MachineObject *obj)