mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-14 03:25:53 +08:00
Fix cancellation from UI for UIThreadWorker
This commit is contained in:
parent
9892893587
commit
6c284882ba
@ -65,7 +65,10 @@ public:
|
||||
explicit UIThreadWorker(std::shared_ptr<ProgressIndicator> pri,
|
||||
const std::string & /*name*/ = "")
|
||||
: m_progress{pri}
|
||||
{}
|
||||
{
|
||||
if (m_progress)
|
||||
m_progress->set_cancel_callback([this](){ cancel(); });
|
||||
}
|
||||
|
||||
UIThreadWorker() = default;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user