Merge branch 'master' into fs_emboss

This commit is contained in:
Filip Sykala 2022-03-21 21:40:50 +01:00
commit 9c56e43f1d

View File

@ -4,6 +4,7 @@
#include "Job.hpp" #include "Job.hpp"
#include <wx/utils.h> #include <wx/utils.h>
#include <boost/log/trivial.hpp>
namespace Slic3r { namespace GUI { namespace Slic3r { namespace GUI {
@ -16,7 +17,11 @@ struct CursorSetterRAII
} }
~CursorSetterRAII() ~CursorSetterRAII()
{ {
try {
ctl.call_on_main_thread([] { wxEndBusyCursor(); }); ctl.call_on_main_thread([] { wxEndBusyCursor(); });
} catch(...) {
BOOST_LOG_TRIVIAL(error) << "Can't revert cursor from busy to normal";
}
} }
}; };