Skip to content

Commit

Permalink
use the official way of getting platform handles in v11
Browse files Browse the repository at this point in the history
  • Loading branch information
jmacato committed Dec 6, 2023
1 parent 77ae2be commit 90c3615
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions BTCPayServer.Vault/AvaloniaHackExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public static void ActivateHack(this Window window)
if (ReferenceEquals(platformImpl, null))
return;

var platformHandle = platformImpl.Handle;
var platformHandle = window.TryGetPlatformHandle();
if (ReferenceEquals(platformHandle, null))
return;

Expand All @@ -65,7 +65,7 @@ public static void Blink(this Window window)
if (ReferenceEquals(platformImpl, null))
return;

var platformHandle = platformImpl.Handle;
var platformHandle = window.TryGetPlatformHandle();
if (ReferenceEquals(platformHandle, null))
return;
var handle = platformHandle.Handle;
Expand Down

0 comments on commit 90c3615

Please sign in to comment.