Add workaround for a Mono bug

This commit is contained in:
James Groom 2024-04-27 18:50:59 +00:00 committed by GitHub
parent 127209f3a2
commit 653844e692
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 7 additions and 0 deletions

View File

@ -207,6 +207,13 @@ namespace BizHawk.Client.EmuHawk
button.MouseLeave += SlotStatusButtons_MouseLeave;
}
if (OSTailoredCode.IsUnixHost)
{
// workaround for https://github.com/mono/mono/issues/12644
MainFormContextMenu.Items.Insert(0, new ToolStripMenuItemEx { Text = "(Dismiss Menu)" }); // don't even need to attach any behaviour, since clicking anything will dismiss the menu first
MainFormContextMenu.Items.Insert(1, new ToolStripSeparatorEx());
}
// New version notification
UpdateChecker.CheckComplete += (s2, e2) =>
{