summaryrefslogtreecommitdiffstats
path: root/platform/macos/godot_menu_delegate.mm
diff options
context:
space:
mode:
Diffstat (limited to 'platform/macos/godot_menu_delegate.mm')
-rw-r--r--platform/macos/godot_menu_delegate.mm9
1 files changed, 8 insertions, 1 deletions
diff --git a/platform/macos/godot_menu_delegate.mm b/platform/macos/godot_menu_delegate.mm
index 5c1e849715..3f7dfac3de 100644
--- a/platform/macos/godot_menu_delegate.mm
+++ b/platform/macos/godot_menu_delegate.mm
@@ -40,13 +40,20 @@
- (void)doNothing:(id)sender {
}
-- (void)menuNeedsUpdate:(NSMenu *)menu {
+- (void)menuWillOpen:(NSMenu *)menu {
if (NativeMenu::get_singleton()) {
NativeMenuMacOS *nmenu = (NativeMenuMacOS *)NativeMenu::get_singleton();
nmenu->_menu_open(menu);
}
}
+- (void)menuNeedsUpdate:(NSMenu *)menu {
+ if (NativeMenu::get_singleton()) {
+ NativeMenuMacOS *nmenu = (NativeMenuMacOS *)NativeMenu::get_singleton();
+ nmenu->_menu_need_update(menu);
+ }
+}
+
- (void)menuDidClose:(NSMenu *)menu {
if (NativeMenu::get_singleton()) {
NativeMenuMacOS *nmenu = (NativeMenuMacOS *)NativeMenu::get_singleton();