Have Print::apply_config() return true if any step was invalidated

This commit is contained in:
Alessandro Ranellucci 2014-06-12 09:29:26 +02:00
parent 5e80d7a388
commit 97231327e0
4 changed files with 23 additions and 9 deletions

View file

@ -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>;

View file

@ -36,7 +36,7 @@ class PrintState
void set_started(StepType step);
void set_done(StepType step);
void invalidate(StepType step);
void invalidate_all();
bool invalidate_all();
};
// A PrintRegion object represents a group of volumes to print