Decrease indentation in `InputRoll.GenerateContextMenuItems`

This commit is contained in:
YoshiRulz 2024-07-12 10:05:17 +10:00
parent c5820f0c0f
commit da06dae80c
No known key found for this signature in database
GPG Key ID: C4DE31C245353FB7
1 changed files with 9 additions and 14 deletions

View File

@ -977,22 +977,17 @@ namespace BizHawk.Client.EmuHawk
public IEnumerable<ToolStripItem> GenerateContextMenuItems() public IEnumerable<ToolStripItem> GenerateContextMenuItems()
{ {
if (Rotatable) if (!Rotatable) yield break;
{
yield return new ToolStripSeparator(); yield return new ToolStripSeparator();
var rotate = new ToolStripMenuItem var rotate = new ToolStripMenuItem
{ {
Name = "RotateMenuItem", Name = "RotateMenuItem",
Text = "Rotate", Text = "Rotate",
ShortcutKeyDisplayString = RotateHotkeyStr ShortcutKeyDisplayString = RotateHotkeyStr
}; };
rotate.Click += (_, _) => HorizontalOrientation = !HorizontalOrientation; rotate.Click += (_, _) => HorizontalOrientation = !HorizontalOrientation;
yield return rotate; yield return rotate;
} }
}
public string RotateHotkeyStr => "Ctrl+Shift+F"; public string RotateHotkeyStr => "Ctrl+Shift+F";