Fixed system tray icon

This commit is contained in:
Ray committed 2024-07-06 18:46:05 +01:00
1 parent 2db89753d1
commit ec5670531b
2 files changed
+291 -281

No files matched your search

+12 -2
View File
@@ -250,9 +250,19 @@ namespace RokettoLaunch.Windows.Forms
toolItem.Tag = item;
toolItem.Click += (object sender, EventArgs e) =>
{
var result = UIControl.GetTag<TileModel>((Control)sender);
var menuItem = (System.Windows.Forms.ToolStripMenuItem)sender;
if (menuItem == null)
{
return;
}
Execute(result);
var model = (menuItem.Tag as TileModel);
if (model == null)
{
return;
}
Execute(model);
};
}
}