Skip to content

Commit

Permalink
Fix Selectors for Menus (#20699)
Browse files Browse the repository at this point in the history
  • Loading branch information
drasticactions authored Feb 19, 2024
1 parent ffc20bf commit 89c2646
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Core/src/Platform/iOS/MauiUIApplicationDelegate.Menu.cs
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,9 @@ public override bool CanPerform(Selector action, NSObject? withSender)

[SupportedOSPlatform("ios13.0")]
[Export(KeyboardAcceleratorExtensions.MenuItemSelectedSelector)]
static internal void MenuItemSelected(UICommand uiCommand)
#pragma warning disable CA1822 // Selectors can't be static, or else it won't be found
internal void MenuItemSelected(UICommand uiCommand)
#pragma warning restore CA1822
{
uiCommand.SendClicked();
}
Expand Down

0 comments on commit 89c2646

Please sign in to comment.