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