mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-19 05:45:56 +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;
|
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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user