FIX:fixed the option to enable AMS even without AMS

Change-Id: Ia3326fefeafb0fedac8d538570bc90ced744df4f
This commit is contained in:
tao wang 2023-06-08 11:18:00 +08:00 committed by Lane.Wei
parent 79b11359c8
commit bd178a46d0

View file

@ -1217,10 +1217,10 @@ SelectMachineDialog::SelectMachineDialog(Plater *plater)
m_sizer_select->Add(select_timelapse, 0, wxLEFT | wxRIGHT, WRAP_GAP);
m_sizer_select->Add(select_use_ams, 0, wxLEFT | wxRIGHT, WRAP_GAP);
select_bed->Show(true);
select_flow->Show(true);
select_timelapse->Show(true);
select_use_ams->Show(true);
select_bed->Show(false);
select_flow->Show(false);
select_timelapse->Show(false);
select_use_ams->Show(false);
m_sizer_select->Layout();
@ -3404,6 +3404,12 @@ void SelectMachineDialog::set_default()
select_bed->Show();
select_flow->Show();
//reset checkbox
select_bed->Show(false);
select_flow->Show(false);
select_timelapse->Show(false);
select_use_ams->Show(false);
// load checkbox values from app config
AppConfig* config = wxGetApp().app_config;
if (config && config->get("print", "bed_leveling") == "0") {