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();