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;
void EmbossJob::process(Ctl &ctl) {
// Changing cursor to busy
wxBeginBusyCursor();
ScopeGuard sg([]() { wxEndBusyCursor(); });
// Changing cursor to busy must be inside main thread
// GTK is not thread safe.
//wxBeginBusyCursor();
//ScopeGuard sg([]() { wxEndBusyCursor(); });
// only for sure
assert(m_input != nullptr);