mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-15 16:25:54 +08:00
Fix hanging status indication if a UI job gets started over another..
This commit is contained in:
parent
3c61d2b352
commit
e324643a04
@ -48,6 +48,9 @@ GUI::Job::Job(std::shared_ptr<ProgressIndicator> pri)
|
|||||||
if (evt.GetInt() == status_range() || m_worker_error) {
|
if (evt.GetInt() == status_range() || m_worker_error) {
|
||||||
// set back the original range and cancel callback
|
// set back the original range and cancel callback
|
||||||
m_progress->set_range(m_range);
|
m_progress->set_range(m_range);
|
||||||
|
// Make sure progress indicators get the last value of their range
|
||||||
|
// to make sure they close, fade out, whathever
|
||||||
|
m_progress->set_progress(m_range);
|
||||||
m_progress->set_cancel_callback();
|
m_progress->set_cancel_callback();
|
||||||
wxEndBusyCursor();
|
wxEndBusyCursor();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user