Silence warning message in NS (bug#59790)

* src/nsterm.m ([EmacsWindow createToolbar:]): Disable toolbar when
fullscreen.
This commit is contained in:
Aaron Jensen 2024-11-22 18:17:55 -08:00 committed by Alan Third
parent 20aa29b037
commit cf3ea44eb5

View file

@ -9361,7 +9361,10 @@ - (instancetype) initWithEmacsFrame: (struct frame *) f
- (void)createToolbar: (struct frame *)f
{
if (FRAME_UNDECORATED (f) || !FRAME_EXTERNAL_TOOL_BAR (f) || [self toolbar] != nil)
if (FRAME_UNDECORATED (f)
|| [self styleMask] == NSWindowStyleMaskBorderless
|| !FRAME_EXTERNAL_TOOL_BAR (f)
|| [self toolbar] != nil)
return;
EmacsView *view = (EmacsView *)FRAME_NS_VIEW (f);