FIX: close GuideFrame on exit to fix crash on MacOS

Change-Id: Ia9c6103961ce13c3f88f898ed449a3f8f299858d
This commit is contained in:
chunmao.guo 2022-09-30 16:16:28 +08:00 committed by Lane.Wei
parent dfa475210f
commit bb02d0f0ae
2 changed files with 4 additions and 2 deletions

View file

@ -35,7 +35,7 @@ namespace Slic3r { namespace GUI {
json m_ProfileJson;
GuideFrame::GuideFrame(GUI_App *pGUI, long style)
: wxDialog((wxWindow *) (pGUI->mainframe), wxID_ANY, "BambuStudio", wxDefaultPosition, wxDefaultSize, style),
: DPIDialog((wxWindow *) (pGUI->mainframe), wxID_ANY, "BambuStudio", wxDefaultPosition, wxDefaultSize, style),
m_appconfig_new()
{
// INI

View file

@ -34,7 +34,7 @@
namespace Slic3r { namespace GUI {
class GuideFrame : public wxDialog
class GuideFrame : public DPIDialog
{
public:
GuideFrame(GUI_App *pGUI, long style = wxCAPTION | wxCLOSE_BOX | wxSYSTEM_MENU);
@ -92,6 +92,8 @@ public:
int InstallPlugin();
int ShowPluginStatus(int status, int percent, bool &cancel);
void on_dpi_changed(const wxRect &suggested_rect) {}
private:
GUI_App *m_MainPtr;
AppConfig m_appconfig_new;