mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2026-01-18 05:45:42 -07:00
FIX: the open door check
jira: [STUDIO-10842] Change-Id: I5b5f305afaaf7e20f1600cda677c231f41b2eb74 (cherry picked from commit 1f6d8a8ef5e2d03fb982f9afe47d64a3e859f1e3)
This commit is contained in:
parent
a2ab9e41d8
commit
dd546d4ec3
1 changed files with 7 additions and 6 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue