Skip to content

Commit

Permalink
Let's not call yield in PlaterWorker
Browse files Browse the repository at this point in the history
Not worth the risk, needs further investigation
  • Loading branch information
tamasmeszaros committed Jun 2, 2022
1 parent da6170d commit 345ee7c
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/slic3r/GUI/Jobs/PlaterWorker.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,7 @@ class PlaterWorker: public Worker {
void update_status(int st, const std::string &msg = "") override
{
ctl.update_status(st, msg);

// 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(); });
wxWakeUpIdle();
}

bool was_canceled() const override { return ctl.was_canceled(); }
Expand Down

0 comments on commit 345ee7c

Please sign in to comment.