Skip to content

Commit

Permalink
Add workaround for a Mono bug
Browse files Browse the repository at this point in the history
  • Loading branch information
YoshiRulz authored Apr 27, 2024
1 parent 127209f commit 653844e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/BizHawk.Client.EmuHawk/MainForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,13 @@ void ClickHandler(object clickSender, EventArgs clickArgs)
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) =>
{
Expand Down

0 comments on commit 653844e

Please sign in to comment.