mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-14 09:02:06 +00:00
FIX: A1 printer cali result default name missing
Jira: [STUDIO-14272] Change-Id: Idbac8156e296e9ab5ec7bcd4b69eb0f58b351a60 (cherry picked from commit c2f38e7b0cef800a18f04dc6e8394b7bde4db626)
This commit is contained in:
@@ -344,7 +344,13 @@ void CaliPASaveAutoPanel::sync_cali_result(const std::vector<PACalibResult>& cal
|
||||
n_value->GetTextCtrl()->SetValue(n_str);
|
||||
|
||||
for (auto& name : preset_names) {
|
||||
if (item.tray_id == name.first) {
|
||||
int tray_id = item.tray_id;
|
||||
/* upgrade single extruder printer tray_id from 254 to 255 */
|
||||
if (!m_obj->is_multi_extruders() && tray_id == VIRTUAL_TRAY_DEPUTY_ID) {
|
||||
tray_id = VIRTUAL_TRAY_MAIN_ID;
|
||||
}
|
||||
|
||||
if (tray_id == name.first) {
|
||||
comboBox_tray_name->SetValue(from_u8(name.second));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user