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 and rmarinho committed Feb 27, 2024
1 parent 9bd6918 commit b2af63f
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 b2af63f

Please sign in to comment.