mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-14 09:02:06 +00:00
FIX: the open door check
jira: [STUDIO-10842] Change-Id: I5b5f305afaaf7e20f1600cda677c231f41b2eb74 (cherry picked from commit 1f6d8a8ef5e2d03fb982f9afe47d64a3e859f1e3)
This commit is contained in:
@@ -51,13 +51,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();
|
||||
@@ -276,6 +273,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)
|
||||
|
||||
Reference in New Issue
Block a user