This commit is contained in:
Archi
2024-03-14 01:11:49 +01:00
parent 8642b0775e
commit 06b2cf4ff5
2 changed files with 3 additions and 0 deletions

View File

@@ -107,10 +107,12 @@ internal static partial class NativeMethods {
[StructLayout(LayoutKind.Sequential)] [StructLayout(LayoutKind.Sequential)]
internal struct FlashWindowInfo { 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 uint StructSize;
public nint WindowHandle; public nint WindowHandle;
public EFlashFlags Flags; public EFlashFlags Flags;
public uint Count; public uint Count;
public uint TimeoutBetweenFlashes; 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
} }
} }

View File

@@ -236,6 +236,7 @@ internal static class OS {
} }
using Process currentProcess = Process.GetCurrentProcess(); using Process currentProcess = Process.GetCurrentProcess();
nint handle = currentProcess.MainWindowHandle; nint handle = currentProcess.MainWindowHandle;
if (handle == nint.Zero) { if (handle == nint.Zero) {