Recent menus - add freeze/unfreeze icons to the freeze menu, hopefully will help it be more noticeable when the mode has changed from a misclick

This commit is contained in:
adelikat 2020-05-24 16:12:22 -05:00
parent deb6c369c4
commit 44b5d12e39
1 changed files with 5 additions and 1 deletions

View File

@ -177,7 +177,11 @@ namespace BizHawk.Client.EmuHawk.ToolExtensions
clearItem.Click += (o, ev) => recent.Clear();
items.Add(clearItem);
var freezeItem = new ToolStripMenuItem { Text = recent.Frozen ? "&Unfreeze" : "&Freeze" };
var freezeItem = new ToolStripMenuItem
{
Text = recent.Frozen ? "&Unfreeze" : "&Freeze",
Image = recent.Frozen ? Properties.Resources.Unfreeze : Properties.Resources.Freeze
};
freezeItem.Click += (o, ev) => recent.Frozen ^= true;
items.Add(freezeItem);