mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-18 20:28:08 -06:00
Smoother manual control movements
This commit is contained in:
parent
37ecc61d06
commit
9febb10bd7
4 changed files with 12 additions and 6 deletions
|
@ -172,15 +172,18 @@ GCodeSender::resume_queue()
|
|||
}
|
||||
|
||||
void
|
||||
GCodeSender::purge_queue()
|
||||
GCodeSender::purge_queue(bool priority)
|
||||
{
|
||||
boost::lock_guard<boost::mutex> l(this->queue_mutex);
|
||||
{
|
||||
std::queue<std::string> empty;
|
||||
if (priority) {
|
||||
// clear priority queue
|
||||
std::swap(this->priqueue, empty);
|
||||
} else {
|
||||
// clear queue
|
||||
std::queue<std::string> empty;
|
||||
std::swap(this->queue, empty);
|
||||
this->queue_paused = false;
|
||||
}
|
||||
this->queue_paused = false;
|
||||
}
|
||||
|
||||
// purge log and return its contents
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue