Comment commented out code back in

This piece of code is not run when the `GLFW_COCOA_MENUBAR` init hint is set to `0`, which kitty does.
This reduces the difference to GLFW upstream a little.
This commit is contained in:
Luflosi 2019-11-24 13:08:06 +01:00
parent c5c59e4c55
commit 4fc733a9c8
No known key found for this signature in database
GPG Key ID: 4E41E29EDCC345D0

View File

@ -470,14 +470,13 @@ static GLFWapplicationwillfinishlaunchingfun finish_launching_callback = NULL;
// finishLaunching below, in order to properly emulate the behavior // finishLaunching below, in order to properly emulate the behavior
// of NSApplicationMain // of NSApplicationMain
// disabled by Kovid if ([[NSBundle mainBundle] pathForResource:@"MainMenu" ofType:@"nib"])
/* if ([[NSBundle mainBundle] pathForResource:@"MainMenu" ofType:@"nib"])
{ {
[[NSBundle mainBundle] loadNibNamed:@"MainMenu" [[NSBundle mainBundle] loadNibNamed:@"MainMenu"
owner:NSApp owner:NSApp
topLevelObjects:&_glfw.ns.nibObjects]; topLevelObjects:&_glfw.ns.nibObjects];
} }
else */ else
createMenuBar(); createMenuBar();
} }
if (finish_launching_callback) if (finish_launching_callback)