FIX: close GuideFrame on exit to fix crash on MacOS
Change-Id: Ia9c6103961ce13c3f88f898ed449a3f8f299858d
This commit is contained in:
parent
dfa475210f
commit
bb02d0f0ae
|
@ -35,7 +35,7 @@ namespace Slic3r { namespace GUI {
|
||||||
json m_ProfileJson;
|
json m_ProfileJson;
|
||||||
|
|
||||||
GuideFrame::GuideFrame(GUI_App *pGUI, long style)
|
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()
|
m_appconfig_new()
|
||||||
{
|
{
|
||||||
// INI
|
// INI
|
||||||
|
|
|
@ -34,7 +34,7 @@
|
||||||
|
|
||||||
namespace Slic3r { namespace GUI {
|
namespace Slic3r { namespace GUI {
|
||||||
|
|
||||||
class GuideFrame : public wxDialog
|
class GuideFrame : public DPIDialog
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
GuideFrame(GUI_App *pGUI, long style = wxCAPTION | wxCLOSE_BOX | wxSYSTEM_MENU);
|
GuideFrame(GUI_App *pGUI, long style = wxCAPTION | wxCLOSE_BOX | wxSYSTEM_MENU);
|
||||||
|
@ -92,6 +92,8 @@ public:
|
||||||
int InstallPlugin();
|
int InstallPlugin();
|
||||||
int ShowPluginStatus(int status, int percent, bool &cancel);
|
int ShowPluginStatus(int status, int percent, bool &cancel);
|
||||||
|
|
||||||
|
void on_dpi_changed(const wxRect &suggested_rect) {}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
GUI_App *m_MainPtr;
|
GUI_App *m_MainPtr;
|
||||||
AppConfig m_appconfig_new;
|
AppConfig m_appconfig_new;
|
||||||
|
|
Loading…
Reference in New Issue