From d9e6c1f95137f5c5f8658b33206f43478e406b48 Mon Sep 17 00:00:00 2001 From: Rusty Burchfield Date: Sun, 12 Mar 2023 18:30:06 -0700 Subject: [PATCH] Sleep -> Yield --- FModel/ViewModels/Commands/MenuCommand.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FModel/ViewModels/Commands/MenuCommand.cs b/FModel/ViewModels/Commands/MenuCommand.cs index 6d49bcb7..1fa133c5 100644 --- a/FModel/ViewModels/Commands/MenuCommand.cs +++ b/FModel/ViewModels/Commands/MenuCommand.cs @@ -106,7 +106,7 @@ public class MenuCommand : ViewModelCommand if (parent.IsExpanded != isExpanded) { parent.IsExpanded = isExpanded; - Thread.Sleep(10); + Thread.Yield(); } cancellationToken.ThrowIfCancellationRequested();