Decrease indentation in `InputRoll.GenerateContextMenuItems`
This commit is contained in:
parent
c5820f0c0f
commit
da06dae80c
|
@ -977,21 +977,16 @@ namespace BizHawk.Client.EmuHawk
|
||||||
|
|
||||||
public IEnumerable<ToolStripItem> GenerateContextMenuItems()
|
public IEnumerable<ToolStripItem> GenerateContextMenuItems()
|
||||||
{
|
{
|
||||||
if (Rotatable)
|
if (!Rotatable) yield break;
|
||||||
|
yield return new ToolStripSeparator();
|
||||||
|
var rotate = new ToolStripMenuItem
|
||||||
{
|
{
|
||||||
yield return new ToolStripSeparator();
|
Name = "RotateMenuItem",
|
||||||
|
Text = "Rotate",
|
||||||
var rotate = new ToolStripMenuItem
|
ShortcutKeyDisplayString = RotateHotkeyStr
|
||||||
{
|
};
|
||||||
Name = "RotateMenuItem",
|
rotate.Click += (_, _) => HorizontalOrientation = !HorizontalOrientation;
|
||||||
Text = "Rotate",
|
yield return rotate;
|
||||||
ShortcutKeyDisplayString = RotateHotkeyStr
|
|
||||||
};
|
|
||||||
|
|
||||||
rotate.Click += (_, _) => HorizontalOrientation = !HorizontalOrientation;
|
|
||||||
|
|
||||||
yield return rotate;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public string RotateHotkeyStr => "Ctrl+Shift+F";
|
public string RotateHotkeyStr => "Ctrl+Shift+F";
|
||||||
|
|
Loading…
Reference in New Issue