mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-18 06:55:57 +08:00
Fix GTK is not thread safe.
This commit is contained in:
parent
27bae18aab
commit
b22fcdc174
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user