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>
This commit is contained in:
Copilot
2026-02-23 07:32:56 +02:00
committed by GitHub
parent dd7196b6a5
commit 18086aa209

View File

@@ -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;
}
}