Replace Task.Delay(100) with Task.Yield() in DialogManager.cs

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
farley128 2025-12-26 16:38:22 -05:00 committed by GitHub
parent df86a8e162
commit aa13d293e4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -38,9 +38,9 @@ public class DialogManager : IDisposable
} }
); );
// Small delay to allow DialogHost to fully reset its state // Yield to allow DialogHost to reset its state
// before another dialog can be shown // before another dialog can be shown
await Task.Delay(100); await Task.Yield();
return dialog.DialogResult; return dialog.DialogResult;
} }