Fix of previous commit.
This commit is contained in:
parent
f64da8e6cc
commit
ba0146746d
1 changed files with 2 additions and 2 deletions
|
@ -527,7 +527,7 @@ protected:
|
||||||
// Add a slicing warning to the active Print step and send a status notification.
|
// Add a slicing warning to the active Print step and send a status notification.
|
||||||
// This method could be called multiple times between this->set_started() and this->set_done().
|
// This method could be called multiple times between this->set_started() and this->set_done().
|
||||||
void active_step_add_warning(PrintStateBase::WarningLevel warning_level, const std::string &message, int message_id = 0) {
|
void active_step_add_warning(PrintStateBase::WarningLevel warning_level, const std::string &message, int message_id = 0) {
|
||||||
std::pair<StepType, bool> active_step = m_state.active_step_add_warning(warning_level, message, message_id, this->state_mutex());
|
std::pair<PrintStepEnum, bool> active_step = m_state.active_step_add_warning(warning_level, message, message_id, this->state_mutex());
|
||||||
if (active_step.second)
|
if (active_step.second)
|
||||||
// Update UI.
|
// Update UI.
|
||||||
this->status_update_warnings(*this, static_cast<int>(active_step.first), warning_level, message);
|
this->status_update_warnings(*this, static_cast<int>(active_step.first), warning_level, message);
|
||||||
|
@ -577,7 +577,7 @@ protected:
|
||||||
// Add a slicing warning to the active PrintObject step and send a status notification.
|
// Add a slicing warning to the active PrintObject step and send a status notification.
|
||||||
// This method could be called multiple times between this->set_started() and this->set_done().
|
// This method could be called multiple times between this->set_started() and this->set_done().
|
||||||
void active_step_add_warning(PrintStateBase::WarningLevel warning_level, const std::string &message, int message_id = 0) {
|
void active_step_add_warning(PrintStateBase::WarningLevel warning_level, const std::string &message, int message_id = 0) {
|
||||||
std::pair<StepType, bool> active_step = m_state.active_step_add_warning(warning_level, message, message_id, PrintObjectBase::state_mutex(m_print));
|
std::pair<PrintObjectStepEnum, bool> active_step = m_state.active_step_add_warning(warning_level, message, message_id, PrintObjectBase::state_mutex(m_print));
|
||||||
if (active_step.second)
|
if (active_step.second)
|
||||||
this->status_update_warnings(m_print, static_cast<int>(active_step.first), warning_level, message);
|
this->status_update_warnings(m_print, static_cast<int>(active_step.first), warning_level, message);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue