diff --git a/app/NativeMethods.cs b/app/NativeMethods.cs index 97c63428..e1bfa71b 100644 --- a/app/NativeMethods.cs +++ b/app/NativeMethods.cs @@ -327,6 +327,8 @@ public class NativeMethods } + [DllImport("User32.dll")] + public static extern bool SetForegroundWindow(IntPtr handle); private const int WM_SYSCOMMAND = 0x0112; private const int SC_MONITORPOWER = 0xF170; diff --git a/app/Settings.cs b/app/Settings.cs index 74f7de85..e0f1b483 100644 --- a/app/Settings.cs +++ b/app/Settings.cs @@ -181,14 +181,8 @@ namespace GHelper CheckForUpdatesAsync(); }); - Activated += SettingsForm_Activated; - } - private void SettingsForm_Activated(object? sender, EventArgs e) - { - if (fans != null && fans.Text != "") fans.BringToFront(); - } protected override void WndProc(ref Message m) { diff --git a/docs/ua.png b/docs/ua.png index 89c9f636..4d2a7979 100644 Binary files a/docs/ua.png and b/docs/ua.png differ