From d38cbada3e311470594615ee714b51d47a51c54f Mon Sep 17 00:00:00 2001 From: "zhimin.zeng" Date: Mon, 17 Mar 2025 15:58:27 +0800 Subject: [PATCH] FIX: show message dialog when the machine's nozzle in unknown jira: none Change-Id: Ic9b0e668c5e8427df76503731865d1b3de8568c4 --- src/slic3r/GUI/CalibrationWizardPresetPage.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/slic3r/GUI/CalibrationWizardPresetPage.cpp b/src/slic3r/GUI/CalibrationWizardPresetPage.cpp index 979b98093..35f961600 100644 --- a/src/slic3r/GUI/CalibrationWizardPresetPage.cpp +++ b/src/slic3r/GUI/CalibrationWizardPresetPage.cpp @@ -594,6 +594,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); });