Fix wxOSX build with wxUSE_TOOLBAR==0

Add preprocessor check around code using wxToolBar in wxFrame.

Closes #26798.
This commit is contained in:
mongilyov
2026-08-07 14:31:45 +02:00
committed by Vadim Zeitlin
parent 98710f8b27
commit 40c106cbfa
+2
View File
@@ -60,6 +60,7 @@ bool wxFrame::Create(wxWindow *parent,
if ( !wxTopLevelWindow::Create(parent, id, title, pos, size, style, name) )
return false;
#if wxUSE_TOOLBAR
if ( wxTheApp->OSXIsFullScreenApp() )
{
if ((parent != nullptr) && (HasFlag(wxCAPTION) || HasFlag(wxCLOSE_BOX)))
@@ -80,6 +81,7 @@ bool wxFrame::Create(wxWindow *parent,
tb->Realize();
}
}
#endif
return true;
}