MenuItem code cleanup

This commit is contained in:
Tig
2024-06-09 08:07:43 -06:00
parent f714a6bb35
commit b6a925ea97

View File

@@ -154,10 +154,10 @@ public class MenuItem
: 0); // Pad two spaces before shortcut tag (which are also aligned right)
/// <summary>Merely a debugging aid to see the interaction with main.</summary>
public bool GetMenuBarItem () { return IsFromSubMenu; }
internal bool GetMenuBarItem () { return IsFromSubMenu; }
/// <summary>Merely a debugging aid to see the interaction with main.</summary>
public MenuItem GetMenuItem () { return this; }
internal MenuItem GetMenuItem () { return this; }
/// <summary>
/// Returns <see langword="true"/> if the menu item is enabled. This method is a wrapper around
@@ -217,7 +217,6 @@ public class MenuItem
/// <para>See also <see cref="Shortcut"/> which enable global key-bindings to menu items.</para>
/// </summary>
public Rune HotKey { get; set; }
private void GetHotKey ()
{
var nextIsHot = false;
@@ -271,4 +270,4 @@ public class MenuItem
: Key.ToString (_shortcutHelper.Shortcut, MenuBar.ShortcutDelimiter);
#endregion Keyboard Handling
}
}