Skip to content

Commit

Permalink
fix: MA00134
Browse files Browse the repository at this point in the history
  • Loading branch information
davidkallesen committed Jun 7, 2024
1 parent f49108f commit 43a3a6f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Atc.Wpf.Theming/Controls/Windows/NiceWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1045,7 +1045,7 @@ public void HideOverlay()
public void StoreFocus(
IInputElement? thisElement = null)
{
this.BeginInvoke(() =>
this.Invoke(() =>
{
restoreFocus = thisElement ?? restoreFocus ?? FocusManager.GetFocusedElement(this);
});
Expand All @@ -1058,7 +1058,7 @@ internal void RestoreFocus()
return;
}

this.BeginInvoke(() =>
this.Invoke(() =>
{
Keyboard.Focus(restoreFocus);
restoreFocus = null;
Expand Down

0 comments on commit 43a3a6f

Please sign in to comment.