mirror of
https://github.com/JustArchiNET/ArchiSteamFarm.git
synced 2026-01-01 14:10:53 +00:00
Misc
This commit is contained in:
@@ -107,10 +107,12 @@ internal static partial class NativeMethods {
|
||||
|
||||
[StructLayout(LayoutKind.Sequential)]
|
||||
internal struct FlashWindowInfo {
|
||||
#pragma warning disable ReSharper.Reordering // TODO: This silly pragma doesn't do anything, but it stops Rider from reordering, we may be able to get rid of it later
|
||||
public uint StructSize;
|
||||
public nint WindowHandle;
|
||||
public EFlashFlags Flags;
|
||||
public uint Count;
|
||||
public uint TimeoutBetweenFlashes;
|
||||
#pragma warning restore ReSharper.Reordering // TODO: This silly pragma doesn't do anything, but it stops Rider from reordering, we may be able to get rid of it later
|
||||
}
|
||||
}
|
||||
|
||||
@@ -236,6 +236,7 @@ internal static class OS {
|
||||
}
|
||||
|
||||
using Process currentProcess = Process.GetCurrentProcess();
|
||||
|
||||
nint handle = currentProcess.MainWindowHandle;
|
||||
|
||||
if (handle == nint.Zero) {
|
||||
|
||||
Reference in New Issue
Block a user