mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-07 06:57:36 -06:00
fix flatpak build
This commit is contained in:
parent
b0bd16e908
commit
f490d2ca9f
2 changed files with 14 additions and 15 deletions
|
@ -4943,14 +4943,14 @@ void GCodeProcessor::run_post_process()
|
|||
// found an invalid value, clamp it to a valid one
|
||||
tool_number = std::clamp<int>(0, m_extruder_temps_config.size() - 1, tool_number);
|
||||
// emit warning
|
||||
std::string warning = _u8L("GCode Post-Processor encountered an invalid toolchange, maybe from a custom gcode:");
|
||||
std::string warning = "GCode Post-Processor encountered an invalid toolchange, maybe from a custom gcode:";
|
||||
warning += "\n> ";
|
||||
warning += gcode_line;
|
||||
warning += _u8L("Generated M104 lines may be incorrect.");
|
||||
warning += "Generated M104 lines may be incorrect.";
|
||||
BOOST_LOG_TRIVIAL(error) << warning;
|
||||
// Orca todo
|
||||
// if (m_print != nullptr)
|
||||
// m_print->active_step_add_warning(PrintStateBase::WarningLevel::CRITICAL, warning);
|
||||
if (m_print != nullptr)
|
||||
m_print->active_step_add_warning(PrintStateBase::WarningLevel::CRITICAL, warning);
|
||||
}
|
||||
}
|
||||
export_lines.insert_lines(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue