diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2017-08-22 00:56:31 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-22 00:56:31 +0200 |
commit | 13f879587dd9bce59528e44b0faaf6e062f6d918 (patch) | |
tree | a46d8268b6a1cae06f6f163c304018b1e7680606 /platform/osx | |
parent | 2cc83092498d3b82fa8a3aba37c32ad887d19c2c (diff) | |
parent | aae29c7a0eace9ccfeb430c5a4ebd0c9a431e272 (diff) |
Merge pull request #10254 from marcelofg55/master
Added notification const NOTIFICATION_WM_ABOUT
Diffstat (limited to 'platform/osx')
-rw-r--r-- | platform/osx/os_osx.mm | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/platform/osx/os_osx.mm b/platform/osx/os_osx.mm index 33b1e64dd4..34f1a93f3b 100644 --- a/platform/osx/os_osx.mm +++ b/platform/osx/os_osx.mm @@ -137,6 +137,11 @@ static bool mouse_down_control = false; //_GodotInputMonitorChange(); } +- (void)showAbout:(id)sender { + if (OS_OSX::singleton->get_main_loop()) + OS_OSX::singleton->get_main_loop()->notification(MainLoop::NOTIFICATION_WM_ABOUT); +} + @end @interface GodotWindowDelegate : NSObject { @@ -1902,7 +1907,7 @@ OS_OSX::OS_OSX() { // Setup Apple menu NSMenu *apple_menu = [[NSMenu alloc] initWithTitle:@""]; title = [NSString stringWithFormat:NSLocalizedString(@"About %@", nil), nsappname]; - [apple_menu addItemWithTitle:title action:@selector(orderFrontStandardAboutPanel:) keyEquivalent:@""]; + [apple_menu addItemWithTitle:title action:@selector(showAbout:) keyEquivalent:@""]; [apple_menu addItem:[NSMenuItem separatorItem]]; |