ENH: only check if from slicing print

jira: [none]
Change-Id: I65676589958b180e7aed6ae78a90a037073fd06b
This commit is contained in:
xin.zhang 2025-05-16 15:59:21 +08:00 committed by lane.wei
parent afd1766c89
commit 561e9ea2b5

View File

@ -3570,25 +3570,21 @@ void SelectMachineDialog::update_show_status(MachineObject* obj_)
}
/*Check high temperture slicing*/
if (m_print_type == PrintFromType::FROM_NORMAL) {
std::unordered_set<int> known_fila_soften_extruders;
std::unordered_set<int> unknown_fila_soften_extruders;
auto preset_full_config = wxGetApp().preset_bundle->full_config();
auto chamber_temperatures = preset_full_config.option<ConfigOptionInts>("chamber_temperatures");
for (const FilamentInfo& item : m_ams_mapping_result)
{
for (const FilamentInfo& item : m_ams_mapping_result) {
try
{
int chamber_temp = chamber_temperatures->values[item.id];
// check close door
if (chamber_temp >= obj_->chamber_temp_switch_heat)
{
if (chamber_temp >= obj_->chamber_temp_switch_heat) {// check close door
show_status(PrintDialogStatus::PrintStatusFilamentWarningHighChamberTempCloseDoor);
if (PrePrintChecker::is_error(PrintDialogStatus::PrintStatusFilamentWarningHighChamberTempCloseDoor)) { return; }
}
// check vitrification
for (const auto& extder : obj_->m_extder_data.extders) {
for (const auto& extder : obj_->m_extder_data.extders) { // check vitrification
if (extder.ext_has_filament) {
const auto& fila_id = obj_->get_filament_id(extder.snow.ams_id, extder.snow.slot_id);
auto filament_info = wxGetApp().preset_bundle->get_filament_by_filament_id(fila_id);
@ -3598,9 +3594,7 @@ void SelectMachineDialog::update_show_status(MachineObject* obj_)
}
} else {
// the minimum temperature_vitrification of the known filaments is 43 degrees
if (43 - chamber_temp <= 5) {
unknown_fila_soften_extruders.insert(extder.id);
}
if (43 - chamber_temp <= 5) { unknown_fila_soften_extruders.insert(extder.id); }
}
}
}
@ -3621,6 +3615,7 @@ void SelectMachineDialog::update_show_status(MachineObject* obj_)
show_status(PrintDialogStatus::PrintStatusFilamentWarningUnknownHighChamberTempSoft, std::vector<wxString> {msg});
if (PrePrintChecker::is_error(PrintDialogStatus::PrintStatusFilamentWarningUnknownHighChamberTempSoft)) { return; }
}
}
/** normal check **/
show_status(PrintDialogStatus::PrintStatusReadyToGo);