mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-16 18:12:10 +00:00
FIX: show message dialog when the machine's nozzle in unknown
jira: none Change-Id: Ic9b0e668c5e8427df76503731865d1b3de8568c4 (cherry picked from commit d38cbada3e311470594615ee714b51d47a51c54f)
This commit is contained in:
@@ -589,6 +589,17 @@ void CalibrationPresetPage::create_selection_panel(wxWindow* parent)
|
||||
<< ", settring_id = " << preset_info.setting_id
|
||||
<< ", name = " << preset_info.name;
|
||||
}
|
||||
|
||||
for (auto extruder : curr_obj->m_extder_data.extders) {
|
||||
if (extruder.current_nozzle_type == NozzleType::ntUndefine) {
|
||||
wxString name = _L("left");
|
||||
if (extruder.id == 0) { name = _L("right"); }
|
||||
wxString msg = wxString::Format(_L("Printer %s nozzle information has not been set. Please configure it before proceeding with the calibration."), name);
|
||||
MessageDialog msg_dlg(nullptr, msg, wxEmptyString, wxICON_WARNING | wxOK);
|
||||
msg_dlg.ShowModal();
|
||||
break;
|
||||
}
|
||||
}
|
||||
on_device_connected(curr_obj);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user