FIX:dynamically update layout when options are changed

Change-Id: I57633604428e42f4a67dfcfd80336ab33767e099
This commit is contained in:
tao wang 2023-01-07 22:23:10 +08:00 committed by Lane.Wei
parent 3651d4ec15
commit 48ceca536b
1 changed files with 5 additions and 1 deletions

View File

@ -1148,9 +1148,11 @@ SelectMachineDialog::SelectMachineDialog(Plater *plater)
select_bed->Show(true);
select_flow->Show(true);
select_timelapse->Show(false);
select_timelapse->Show(true);
select_use_ams->Show(true);
m_sizer_select->Layout();
// line schedule
m_line_schedule = new wxPanel(this, wxID_ANY, wxDefaultPosition, wxSize(-1, 1));
m_line_schedule->SetBackgroundColour(wxColour(238, 238, 238));
@ -1424,6 +1426,8 @@ void SelectMachineDialog::update_select_layout(MachineObject *obj)
} else {
select_timelapse->Hide();
}
m_sizer_select->Layout();
Fit();
}