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:
parent
c5c59e4c55
commit
4fc733a9c8
@ -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)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user