From aa13d293e4e608f0dac37cbf10a8044df7c3b7ce Mon Sep 17 00:00:00 2001 From: farley128 <158223114+farley128@users.noreply.github.com> Date: Fri, 26 Dec 2025 16:38:22 -0500 Subject: [PATCH] Replace Task.Delay(100) with Task.Yield() in DialogManager.cs Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- DiscordChatExporter.Gui/Framework/DialogManager.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/DiscordChatExporter.Gui/Framework/DialogManager.cs b/DiscordChatExporter.Gui/Framework/DialogManager.cs index 258ae872..88e3e371 100644 --- a/DiscordChatExporter.Gui/Framework/DialogManager.cs +++ b/DiscordChatExporter.Gui/Framework/DialogManager.cs @@ -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 - await Task.Delay(100); + await Task.Yield(); return dialog.DialogResult; }