mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-08 23:46:24 -06:00
FIX:dynamically update layout when options are changed
Change-Id: I57633604428e42f4a67dfcfd80336ab33767e099
This commit is contained in:
parent
3651d4ec15
commit
48ceca536b
1 changed files with 5 additions and 1 deletions
|
@ -1148,9 +1148,11 @@ SelectMachineDialog::SelectMachineDialog(Plater *plater)
|
||||||
|
|
||||||
select_bed->Show(true);
|
select_bed->Show(true);
|
||||||
select_flow->Show(true);
|
select_flow->Show(true);
|
||||||
select_timelapse->Show(false);
|
select_timelapse->Show(true);
|
||||||
select_use_ams->Show(true);
|
select_use_ams->Show(true);
|
||||||
|
|
||||||
|
m_sizer_select->Layout();
|
||||||
|
|
||||||
// line schedule
|
// line schedule
|
||||||
m_line_schedule = new wxPanel(this, wxID_ANY, wxDefaultPosition, wxSize(-1, 1));
|
m_line_schedule = new wxPanel(this, wxID_ANY, wxDefaultPosition, wxSize(-1, 1));
|
||||||
m_line_schedule->SetBackgroundColour(wxColour(238, 238, 238));
|
m_line_schedule->SetBackgroundColour(wxColour(238, 238, 238));
|
||||||
|
@ -1424,6 +1426,8 @@ void SelectMachineDialog::update_select_layout(MachineObject *obj)
|
||||||
} else {
|
} else {
|
||||||
select_timelapse->Hide();
|
select_timelapse->Hide();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
m_sizer_select->Layout();
|
||||||
Fit();
|
Fit();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue