mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-17 10:32:20 +00:00
Have Print::apply_config() return true if any step was invalidated
This commit is contained in:
@@ -40,11 +40,13 @@ PrintState<StepClass>::invalidate(StepClass step)
|
||||
}
|
||||
|
||||
template <class StepClass>
|
||||
void
|
||||
bool
|
||||
PrintState<StepClass>::invalidate_all()
|
||||
{
|
||||
bool empty = this->_started.empty();
|
||||
this->_started.clear();
|
||||
this->_done.clear();
|
||||
return !empty; // return true if we invalidated something
|
||||
}
|
||||
|
||||
template class PrintState<PrintStep>;
|
||||
|
||||
Reference in New Issue
Block a user