mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-10-26 18:21:18 -06:00
Implement exception rethrow for ui jobs
This commit is contained in:
parent
264ce71e94
commit
56e7d83513
11 changed files with 112 additions and 51 deletions
24
src/slic3r/GUI/Jobs/PlaterJob.hpp
Normal file
24
src/slic3r/GUI/Jobs/PlaterJob.hpp
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
#ifndef PLATERJOB_HPP
|
||||
#define PLATERJOB_HPP
|
||||
|
||||
#include "Job.hpp"
|
||||
|
||||
namespace Slic3r { namespace GUI {
|
||||
|
||||
class Plater;
|
||||
|
||||
class PlaterJob : public Job {
|
||||
protected:
|
||||
Plater *m_plater;
|
||||
|
||||
void on_exception(const std::exception_ptr &) override;
|
||||
|
||||
public:
|
||||
|
||||
PlaterJob(std::shared_ptr<ProgressIndicator> pri, Plater *plater):
|
||||
Job{std::move(pri)}, m_plater{plater} {}
|
||||
};
|
||||
|
||||
}} // namespace Slic3r::GUI
|
||||
|
||||
#endif // PLATERJOB_HPP
|
||||
Loading…
Add table
Add a link
Reference in a new issue