FIX:dynamically update layout when options are changed

Change-Id: I57633604428e42f4a67dfcfd80336ab33767e099
(cherry picked from commit 3c9ca0d59da9aa1631470019cd22b5b736733c14)
This commit is contained in:
tao wang 2023-01-07 22:23:10 +08:00 committed by lane.wei
parent 6c645d04b9
commit 5297db0d99

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();
}