ENH:use user settings when not using PEI bed

fixed https://github.com/bambulab/BambuStudio/issues/2014
1. Disable flow calibration when using PEI bed
2. Use user settings when PEI bed is not in use

Change-Id: Ie4f81f0d4649c69255f97355af14cacedf8b2bbf
This commit is contained in:
tao wang 2023-07-18 14:55:25 +08:00 committed by Lane.Wei
parent 386607a6a7
commit 53890cf106

View file

@ -3389,7 +3389,15 @@ void SelectMachineDialog::set_flow_calibration_state(bool state)
select_flow->SetToolTip(tool_tip);
}
else {
m_checkbox_list["flow_cali"]->SetValue(state);
AppConfig* config = wxGetApp().app_config;
if (config && config->get("print", "flow_cali") == "0") {
m_checkbox_list["flow_cali"]->SetValue(false);
}
else {
m_checkbox_list["flow_cali"]->SetValue(true);
}
m_checkbox_list["flow_cali"]->Enable();
//m_checkbox_state_list["flow_cali"] = state;
for (auto win : select_flow->GetWindowChildren()) {