mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-17 02:22:17 +00:00
FIX: the k value of slot is set to default value
when enter "merge result" in cali page jira: STUDIO-10409 Change-Id: I03c49306342cda9b9c305b188201ec6f5b6ab1f1 (cherry picked from commit 75ab432b124dad3a3d66e3a6a069c8543cf8e0b6)
This commit is contained in:
@@ -183,8 +183,22 @@ void HistoryWindow::sync_history_result(MachineObject* obj)
|
||||
BOOST_LOG_TRIVIAL(info) << "sync_history_result";
|
||||
|
||||
m_calib_results_history.clear();
|
||||
if (obj)
|
||||
m_calib_results_history = obj->pa_calib_tab;
|
||||
if (obj) {
|
||||
if (obj->is_multi_extruders()) {
|
||||
for (const PACalibResult &pa_result : obj->pa_calib_tab) {
|
||||
if (pa_result.extruder_id == 0 && m_extruder_switch_btn->GetValue()) {
|
||||
// left extruder
|
||||
m_calib_results_history.emplace_back(pa_result);
|
||||
} else if (pa_result.extruder_id == 1 && !m_extruder_switch_btn->GetValue()) {
|
||||
// right extruder
|
||||
m_calib_results_history.emplace_back(pa_result);
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
m_calib_results_history = obj->pa_calib_tab;
|
||||
}
|
||||
}
|
||||
|
||||
if (m_calib_results_history.empty()) {
|
||||
m_tips->SetLabel(_L("No History Result"));
|
||||
@@ -274,6 +288,7 @@ void HistoryWindow::reqeust_history_result(MachineObject* obj)
|
||||
cali_info.nozzle_diameter = nozzle_value;
|
||||
cali_info.extruder_id = extruder_id;
|
||||
cali_info.use_nozzle_volume_type = false;
|
||||
cali_info.use_extruder_id = false;
|
||||
CalibUtils::emit_get_PA_calib_infos(cali_info);
|
||||
m_tips->SetLabel(_L("Refreshing the historical Flow Dynamics Calibration records"));
|
||||
BOOST_LOG_TRIVIAL(info) << "request calib history";
|
||||
|
||||
Reference in New Issue
Block a user