mirror of
https://github.com/netchx/netch.git
synced 2026-05-11 23:45:06 +08:00
Fix active/save Profile
Fix SingleInstance MainForm Refactors
This commit is contained in:
@@ -255,5 +255,17 @@ namespace Netch.Utils
|
||||
var endIndex = str.IndexOf(':');
|
||||
return endIndex == -1 ? str : str[..endIndex];
|
||||
}
|
||||
|
||||
public static void ActivateVisibleWindows()
|
||||
{
|
||||
foreach (var f in Application.OpenForms.Cast<Form>())
|
||||
{
|
||||
if (!f.Visible)
|
||||
continue;
|
||||
|
||||
f.WindowState = FormWindowState.Normal;
|
||||
f.Activate();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user