mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-09-11 02:57:39 +00:00
fix crash on Mac
This commit is contained in:
@@ -413,7 +413,10 @@ void MonitorPanel::update_hms_tag()
|
|||||||
bool MonitorPanel::Show(bool show)
|
bool MonitorPanel::Show(bool show)
|
||||||
{
|
{
|
||||||
#ifdef __APPLE__
|
#ifdef __APPLE__
|
||||||
wxGetApp().mainframe->SetMinSize(wxGetApp().plater()->GetMinSize());
|
// Notebook::InsertPage() hides every page it appends, so this also runs while MainFrame is
|
||||||
|
// still constructing, before GUI_App::mainframe is assigned. Same guard as Plater::Show().
|
||||||
|
if (wxGetApp().mainframe)
|
||||||
|
wxGetApp().mainframe->SetMinSize(wxGetApp().plater()->GetMinSize());
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
NetworkAgent* m_agent = wxGetApp().getAgent();
|
NetworkAgent* m_agent = wxGetApp().getAgent();
|
||||||
|
|||||||
Reference in New Issue
Block a user