fix crash on Mac

This commit is contained in:
SoftFever
2026-08-19 01:37:23 +08:00
parent 02736fee16
commit 5be1f8f209
+3
View File
@@ -413,6 +413,9 @@ void MonitorPanel::update_hms_tag()
bool MonitorPanel::Show(bool show) bool MonitorPanel::Show(bool show)
{ {
#ifdef __APPLE__ #ifdef __APPLE__
// 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()); wxGetApp().mainframe->SetMinSize(wxGetApp().plater()->GetMinSize());
#endif #endif