From e324643a04b81e3e4a7607a6b7fdd50a7c3d0729 Mon Sep 17 00:00:00 2001 From: tamasmeszaros Date: Thu, 11 Nov 2021 17:07:35 +0100 Subject: [PATCH] Fix hanging status indication if a UI job gets started over another.. --- src/slic3r/GUI/Jobs/Job.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/slic3r/GUI/Jobs/Job.cpp b/src/slic3r/GUI/Jobs/Job.cpp index 7590f2d42..9d0d4bc80 100644 --- a/src/slic3r/GUI/Jobs/Job.cpp +++ b/src/slic3r/GUI/Jobs/Job.cpp @@ -48,6 +48,9 @@ GUI::Job::Job(std::shared_ptr pri) if (evt.GetInt() == status_range() || m_worker_error) { // set back the original range and cancel callback 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(); wxEndBusyCursor();