Sleep -> Yield

This commit is contained in:
Rusty Burchfield
2023-03-12 18:30:06 -07:00
committed by GitHub
parent 84bb78558e
commit d9e6c1f951

View File

@@ -106,7 +106,7 @@ public class MenuCommand : ViewModelCommand<ApplicationViewModel>
if (parent.IsExpanded != isExpanded)
{
parent.IsExpanded = isExpanded;
Thread.Sleep(10);
Thread.Yield();
}
cancellationToken.ThrowIfCancellationRequested();