Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/Calculator/Common/AlwaysSelectedCollectionView.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,11 @@ public bool MoveCurrentTo(object item)
// restore the selection to the way we wanted it to begin with
if (CurrentPosition >= 0 && CurrentPosition < m_source.Count)
{
Dispatcher.RunAsync(Windows.UI.Core.CoreDispatcherPriority.Normal, () =>
// Fire-and-forget to avoid blocking UI thread / deadlock
_ = Dispatcher.RunAsync(Windows.UI.Core.CoreDispatcherPriority.Normal, () =>
{
CurrentChanged?.Invoke(this, null);
}).AsTask().Wait();
});
}
return false;
}
Expand Down