From 18086aa209f00a28262fc7287e96d0745c53da54 Mon Sep 17 00:00:00 2001 From: Copilot <198982749+Copilot@users.noreply.github.com> Date: Mon, 23 Feb 2026 07:32:56 +0200 Subject: [PATCH] Fix second dialog not appearing when dialogs are shown sequentially (#1481) * Initial plan * Add Task.Yield() to DialogManager to fix sequential dialog display Co-authored-by: Tyrrrz <1935960+Tyrrrz@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: Tyrrrz <1935960+Tyrrrz@users.noreply.github.com> --- DiscordChatExporter.Gui/Framework/DialogManager.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/DiscordChatExporter.Gui/Framework/DialogManager.cs b/DiscordChatExporter.Gui/Framework/DialogManager.cs index 0f6a8f86..68d49435 100644 --- a/DiscordChatExporter.Gui/Framework/DialogManager.cs +++ b/DiscordChatExporter.Gui/Framework/DialogManager.cs @@ -38,6 +38,10 @@ public class DialogManager : IDisposable } ); + // Yield to allow DialogHost to fully reset its state before + // another dialog is shown (e.g. when dialogs are shown sequentially) + await Task.Yield(); + return dialog.DialogResult; } }