Skip to content

Commit 2d2b720

Browse files
committed
Possible fix for search window reappearing when opening search result (#690)
1 parent 88fe88d commit 2d2b720

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

EverythingToolbar/SearchWindow.xaml.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ private void AnimateHideWin10(Edge taskbarEdge)
326326
{
327327
if (ToolbarSettings.User.IsAnimationsDisabled)
328328
{
329-
OnHidden(this, EventArgs.Empty);
329+
Dispatcher.BeginInvoke(() => OnHidden(this, EventArgs.Empty));
330330
return;
331331
}
332332

@@ -370,7 +370,7 @@ private void AnimateHideWin11(Edge taskbarEdge)
370370
{
371371
if (ToolbarSettings.User.IsAnimationsDisabled)
372372
{
373-
OnHidden(this, EventArgs.Empty);
373+
Dispatcher.BeginInvoke(() => OnHidden(this, EventArgs.Empty));
374374
return;
375375
}
376376

0 commit comments

Comments
 (0)