mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-02 06:30:38 +08:00
Fix return value when create job
This commit is contained in:
parent
bd680e0206
commit
95178a2ba3
@ -176,10 +176,11 @@ bool BoostThreadWorker::wait_for_idle(unsigned timeout_ms)
|
||||
|
||||
bool BoostThreadWorker::push(std::unique_ptr<Job> job)
|
||||
{
|
||||
if (job)
|
||||
m_input_queue.push(JobEntry{std::move(job)});
|
||||
if (!job)
|
||||
return false;
|
||||
|
||||
return bool{job};
|
||||
m_input_queue.push(JobEntry{std::move(job)});
|
||||
return true;
|
||||
}
|
||||
|
||||
}} // namespace Slic3r::GUI
|
||||
|
Loading…
x
Reference in New Issue
Block a user