mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-12 02:19:05 +08:00
Fixed several indentation-related warnings
This commit is contained in:
parent
761e71eb63
commit
255469347f
@ -507,9 +507,9 @@ protected:
|
|||||||
bool set_started(PrintStepEnum step) { return m_state.set_started(step, this->state_mutex(), [this](){ this->throw_if_canceled(); }); }
|
bool set_started(PrintStepEnum step) { return m_state.set_started(step, this->state_mutex(), [this](){ this->throw_if_canceled(); }); }
|
||||||
PrintStateBase::TimeStamp set_done(PrintStepEnum step) {
|
PrintStateBase::TimeStamp set_done(PrintStepEnum step) {
|
||||||
std::pair<PrintStateBase::TimeStamp, bool> status = m_state.set_done(step, this->state_mutex(), [this](){ this->throw_if_canceled(); });
|
std::pair<PrintStateBase::TimeStamp, bool> status = m_state.set_done(step, this->state_mutex(), [this](){ this->throw_if_canceled(); });
|
||||||
if (status.second)
|
if (status.second)
|
||||||
this->status_update_warnings(this->id(), static_cast<int>(step), PrintStateBase::WarningLevel::NON_CRITICAL, std::string());
|
this->status_update_warnings(this->id(), static_cast<int>(step), PrintStateBase::WarningLevel::NON_CRITICAL, std::string());
|
||||||
return status.first;
|
return status.first;
|
||||||
}
|
}
|
||||||
bool invalidate_step(PrintStepEnum step)
|
bool invalidate_step(PrintStepEnum step)
|
||||||
{ return m_state.invalidate(step, this->cancel_callback()); }
|
{ return m_state.invalidate(step, this->cancel_callback()); }
|
||||||
@ -556,9 +556,9 @@ protected:
|
|||||||
{ return m_state.set_started(step, PrintObjectBase::state_mutex(m_print), [this](){ this->throw_if_canceled(); }); }
|
{ return m_state.set_started(step, PrintObjectBase::state_mutex(m_print), [this](){ this->throw_if_canceled(); }); }
|
||||||
PrintStateBase::TimeStamp set_done(PrintObjectStepEnum step) {
|
PrintStateBase::TimeStamp set_done(PrintObjectStepEnum step) {
|
||||||
std::pair<PrintStateBase::TimeStamp, bool> status = m_state.set_done(step, PrintObjectBase::state_mutex(m_print), [this](){ this->throw_if_canceled(); });
|
std::pair<PrintStateBase::TimeStamp, bool> status = m_state.set_done(step, PrintObjectBase::state_mutex(m_print), [this](){ this->throw_if_canceled(); });
|
||||||
if (status.second)
|
if (status.second)
|
||||||
this->status_update_warnings(m_print, static_cast<int>(step), PrintStateBase::WarningLevel::NON_CRITICAL, std::string());
|
this->status_update_warnings(m_print, static_cast<int>(step), PrintStateBase::WarningLevel::NON_CRITICAL, std::string());
|
||||||
return status.first;
|
return status.first;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool invalidate_step(PrintObjectStepEnum step)
|
bool invalidate_step(PrintObjectStepEnum step)
|
||||||
|
@ -2841,7 +2841,7 @@ void Plater::priv::export_gcode(fs::path output_path, bool output_path_on_remova
|
|||||||
if ((state & priv::UPDATE_BACKGROUND_PROCESS_INVALID) != 0)
|
if ((state & priv::UPDATE_BACKGROUND_PROCESS_INVALID) != 0)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
show_warning_dialog = true;
|
show_warning_dialog = true;
|
||||||
if (! output_path.empty()) {
|
if (! output_path.empty()) {
|
||||||
background_process.schedule_export(output_path.string(), output_path_on_removable_media);
|
background_process.schedule_export(output_path.string(), output_path_on_removable_media);
|
||||||
} else {
|
} else {
|
||||||
@ -4697,8 +4697,8 @@ void Plater::export_gcode(bool prefer_removable)
|
|||||||
if (p->model.objects.empty())
|
if (p->model.objects.empty())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (p->process_completed_with_error)//here
|
if (p->process_completed_with_error)//here
|
||||||
return;
|
return;
|
||||||
|
|
||||||
// If possible, remove accents from accented latin characters.
|
// If possible, remove accents from accented latin characters.
|
||||||
// This function is useful for generating file names to be processed by legacy firmwares.
|
// This function is useful for generating file names to be processed by legacy firmwares.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user