diff --git a/Touhou Launcher/MainForm.cs b/Touhou Launcher/MainForm.cs index 443da44..5e758de 100644 --- a/Touhou Launcher/MainForm.cs +++ b/Touhou Launcher/MainForm.cs @@ -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(); }