mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-14 08:45:52 +08:00
Let's not call yield in PlaterWorker
Not worth the risk, needs further investigation
This commit is contained in:
parent
da6170d721
commit
345ee7cf28
@ -39,13 +39,7 @@ class PlaterWorker: public Worker {
|
|||||||
void update_status(int st, const std::string &msg = "") override
|
void update_status(int st, const std::string &msg = "") override
|
||||||
{
|
{
|
||||||
ctl.update_status(st, msg);
|
ctl.update_status(st, msg);
|
||||||
|
wxWakeUpIdle();
|
||||||
// If the worker is not using additional threads, the UI
|
|
||||||
// is refreshed with this call. If the worker is running
|
|
||||||
// in it's own thread, this will be one additional
|
|
||||||
// evaluation of the event loop which should have no visible
|
|
||||||
// effects.
|
|
||||||
call_on_main_thread([] { wxYieldIfNeeded(); });
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool was_canceled() const override { return ctl.was_canceled(); }
|
bool was_canceled() const override { return ctl.was_canceled(); }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user