Fix duplicated error message dialog from GUI jobs.

This commit is contained in:
tamasmeszaros 2021-04-07 12:40:33 +02:00
parent 9aac1b6fa5
commit 3135e47180
3 changed files with 28 additions and 7 deletions

View file

@ -29,9 +29,10 @@ namespace Slic3r { namespace GUI {
class Job : public wxEvtHandler
{
int m_range = 100;
int m_thread_evt_id = wxID_ANY;
boost::thread m_thread;
std::atomic<bool> m_running{false}, m_canceled{false};
bool m_finalized = false;
bool m_finalized = false, m_finalizing = false;
std::shared_ptr<ProgressIndicator> m_progress;
std::exception_ptr m_worker_error = nullptr;