FIX: shutdown GUI_App after confirm dialog

Change-Id: Ie379e9e764f43be1592a74b929bfbfc1d2d41a49
Signed-off-by: Stone Li <stone.li@bambulab.com>
This commit is contained in:
Stone Li authored and Lane.Wei committed 2022-08-05 15:28:01 +08:00
1 parent e0c4453c46
commit a9fd7c762e
3 files changed
+19 -14

No files matched your search

+1
View File
@@ -700,6 +700,7 @@ void MainFrame::shutdown()
// to avoid any manipulations with them from App->wxEVT_IDLE after of the mainframe closing
wxGetApp().tabs_list.clear();
wxGetApp().model_tabs_list.clear();
wxGetApp().shutdown();
// BBS: why clear ?
//wxGetApp().plater_ = nullptr;
}