mirror of
https://github.com/Tyrrrz/DiscordChatExporter.git
synced 2026-02-14 07:43:31 -07:00
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:
parent
df86a8e162
commit
aa13d293e4
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue