fix: Fix a bug where flashIfOpen's behavior was inverted. (#1468)

This commit is contained in:
KazWolfe 2023-10-05 14:10:24 -07:00 committed by GitHub
parent e4d175d5cb
commit 2405dca9e1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -620,7 +620,7 @@ public static class Util
/// <param name="flashIfOpen">Attempt to flash even if the game is currently focused.</param>
public static void FlashWindow(bool flashIfOpen = false)
{
if (NativeFunctions.ApplicationIsActivated() && flashIfOpen)
if (NativeFunctions.ApplicationIsActivated() && !flashIfOpen)
return;
var flashInfo = new NativeFunctions.FlashWindowInfo