Fix GTK is not thread safe.

This commit is contained in:
Filip Sykala 2021-12-15 09:23:47 +01:00
parent 27bae18aab
commit b22fcdc174

View File

@ -15,9 +15,10 @@ using namespace Slic3r;
using namespace GUI; using namespace GUI;
void EmbossJob::process(Ctl &ctl) { void EmbossJob::process(Ctl &ctl) {
// Changing cursor to busy // Changing cursor to busy must be inside main thread
wxBeginBusyCursor(); // GTK is not thread safe.
ScopeGuard sg([]() { wxEndBusyCursor(); }); //wxBeginBusyCursor();
//ScopeGuard sg([]() { wxEndBusyCursor(); });
// only for sure // only for sure
assert(m_input != nullptr); assert(m_input != nullptr);