summaryrefslogtreecommitdiffstats
path: root/platform/macos/godot_application_delegate.mm
diff options
context:
space:
mode:
Diffstat (limited to 'platform/macos/godot_application_delegate.mm')
-rw-r--r--platform/macos/godot_application_delegate.mm7
1 files changed, 4 insertions, 3 deletions
diff --git a/platform/macos/godot_application_delegate.mm b/platform/macos/godot_application_delegate.mm
index b3759e66f5..02466bab97 100644
--- a/platform/macos/godot_application_delegate.mm
+++ b/platform/macos/godot_application_delegate.mm
@@ -31,6 +31,7 @@
#include "godot_application_delegate.h"
#include "display_server_macos.h"
+#include "native_menu_macos.h"
#include "os_macos.h"
@implementation GodotApplicationDelegate
@@ -211,9 +212,9 @@
}
- (NSMenu *)applicationDockMenu:(NSApplication *)sender {
- DisplayServerMacOS *ds = (DisplayServerMacOS *)DisplayServer::get_singleton();
- if (ds) {
- return ds->get_dock_menu();
+ if (NativeMenu::get_singleton()) {
+ NativeMenuMacOS *nmenu = (NativeMenuMacOS *)NativeMenu::get_singleton();
+ return nmenu->_get_dock_menu();
} else {
return nullptr;
}