mirror of
https://github.com/netchx/netch.git
synced 2026-03-18 18:13:21 +08:00
Fixup Remove unused Control.Invoke
This commit is contained in:
@@ -1364,8 +1364,14 @@ namespace Netch.Forms
|
||||
|
||||
#region NotifyIcon
|
||||
|
||||
private void ShowMainFormToolStripButton_Click(object sender, EventArgs e)
|
||||
public void ShowMainFormToolStripButton_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (InvokeRequired)
|
||||
{
|
||||
Invoke(new Action(() => ShowMainFormToolStripButton_Click(sender, e)));
|
||||
return;
|
||||
}
|
||||
|
||||
var forms = Application.OpenForms.Cast<Form>().ToList();
|
||||
var anyWindowOpened = forms.Any(f => f is not (MainForm or LogForm));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user