FIX: duplicated items in comboBox at calibration completed page

jira: new

Change-Id: I4749a2206df16c438e0d3098e36274b2a20f313e
This commit is contained in:
liz.li 2023-12-18 19:22:55 +08:00 committed by Lane.Wei
parent b9788986b5
commit d58baba184
1 changed files with 3 additions and 5 deletions

View File

@ -261,11 +261,9 @@ void CaliPASaveAutoPanel::sync_cali_result(const std::vector<PACalibResult>& cal
static std::vector<PACalibResult> filtered_results; static std::vector<PACalibResult> filtered_results;
filtered_results.clear(); filtered_results.clear();
for (auto history : history_result) { for (auto history : history_result) {
for (auto& info : m_obj->selected_cali_preset) { if (history.filament_id == item.filament_id) {
if (history.filament_id == info.filament_id) { filtered_results.push_back(history);
filtered_results.push_back(history); selections.push_back(from_u8(history.name));
selections.push_back(from_u8(history.name));
}
} }
} }
comboBox_tray_name->Set(selections); comboBox_tray_name->Set(selections);