Skip to content

Commit

Permalink
Fixed context menu crash.
Browse files Browse the repository at this point in the history
Thanks .NET C# for not remembering what control triggered the context menu in the first place.
  • Loading branch information
David-JonesDVN committed Apr 17, 2019
1 parent d2577b7 commit ca98d69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Touhou Launcher/MainForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -597,7 +597,7 @@ private void trayMenu_Opening(object sender, CancelEventArgs e)

private void configureToolStripMenuItem_Click(object sender, EventArgs e)
{
Button btn = (Button)((ContextMenuStrip)((ToolStripMenuItem)sender).GetCurrentParent()).SourceControl;
Button btn = (Button)((ContextMenuStrip)((ToolStripMenuItem)sender).GetCurrentParent()).Tag;
ConfigForm gameConfig = new ConfigForm(btn);
gameConfig.ShowDialog();
}
Expand Down

0 comments on commit ca98d69

Please sign in to comment.