Skip to content

Commit 9a5e0ab

Browse files
committed
fix: Fixed #186
1 parent debc982 commit 9a5e0ab

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/libs/H.NotifyIcon.Shared/TaskbarIcon.ContextMenu.WinUI.SecondWindow.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ private void PrepareContextMenuWindow()
9999
AreOpenCloseAnimationsEnabled = ContextFlyout.AreOpenCloseAnimationsEnabled,
100100
Placement = FlyoutPlacementMode.Full,
101101
};
102-
flyout.Closed += async (_, _) =>
102+
flyout.Closed += (_, _) =>
103103
{
104104
if (!flyout.AreOpenCloseAnimationsEnabled ||
105105
!IsContextMenuVisible)
@@ -108,7 +108,6 @@ private void PrepareContextMenuWindow()
108108
return;
109109
}
110110

111-
await Task.Delay(1).ConfigureAwait(true);
112111
flyout.ShowAt(window.Content, new FlyoutShowOptions
113112
{
114113
ShowMode = FlyoutShowMode.Transient,

0 commit comments

Comments
 (0)