FIX: fix crash when cancel a print job

Change-Id: Ib82d3be93ba7eefeb3a340a060021af323005ba9
Signed-off-by: Stone Li <stone.li@bambulab.com>
This commit is contained in:
Stone Li 2022-08-08 12:14:48 +08:00 committed by Yifan Wu
parent 7fb886a03c
commit 64fb6e7a24
3 changed files with 42 additions and 7 deletions

View file

@ -298,6 +298,7 @@ protected:
StateColor btn_bg_enable;
int m_current_filament_id;
bool m_is_in_sending_mode { false };
wxGridSizer *m_sizer_select;
wxBoxSizer * sizer_thumbnail;
@ -338,6 +339,7 @@ public:
wxObjectDataPtr<MachineListModel> machine_model;
std::shared_ptr<BBLStatusBarSend> m_status_bar;
bool m_export_3mf_cancel{false};
bool m_is_canceled { false };
protected:
std::vector<MachineObject *> m_list;