UI Tweaks

This commit is contained in:
Serge
2023-06-02 21:25:18 +02:00
parent 1222377c33
commit eb522214f0
3 changed files with 2 additions and 6 deletions

View File

@@ -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;

View File

@@ -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)
{

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 11 KiB