mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-06-01 08:29:30 +08:00
Use asynchronous wxWidgets messages when posting between threads.
This commit is contained in:
parent
5063c15442
commit
eed15c459b
@ -40,13 +40,7 @@ void BackgroundSlicingProcess::thread_proc()
|
|||||||
m_print->process();
|
m_print->process();
|
||||||
if (m_print->canceled())
|
if (m_print->canceled())
|
||||||
return;
|
return;
|
||||||
printf("PReparing m_event_sliced_id command\n");
|
wxQueueEvent(GUI::g_wxPlater, new wxCommandEvent(m_event_sliced_id));
|
||||||
wxCommandEvent evt(m_event_sliced_id);
|
|
||||||
printf("Issuing m_event_sliced_id command\n");
|
|
||||||
wxQueueEvent(GUI::g_wxPlater, evt.Clone());
|
|
||||||
GUI::g_wxPlater->ProcessWindowEvent(evt);
|
|
||||||
//GUI::g_wxPlater->ProcessEvent(evt);
|
|
||||||
printf("Done with m_event_sliced_id command\n");
|
|
||||||
m_print->export_gcode(m_output_path, m_gcode_preview_data);
|
m_print->export_gcode(m_output_path, m_gcode_preview_data);
|
||||||
} catch (std::exception &ex) {
|
} catch (std::exception &ex) {
|
||||||
error = ex.what();
|
error = ex.what();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user