diff --git a/changes/2474.bugfix.rst b/changes/2474.bugfix.rst new file mode 100644 index 0000000000..3e29dd7747 --- /dev/null +++ b/changes/2474.bugfix.rst @@ -0,0 +1 @@ +The stack trace dialog no longer raises an async timeout error when displayed. diff --git a/winforms/src/toga_winforms/dialogs.py b/winforms/src/toga_winforms/dialogs.py index cd09b6e98e..3e68b7807e 100644 --- a/winforms/src/toga_winforms/dialogs.py +++ b/winforms/src/toga_winforms/dialogs.py @@ -165,7 +165,10 @@ def __init__(self, interface, title, message, content, retry): self.native.Controls.Add(accept) - self.start_inner_loop(self.native.ShowDialog) + def show(): + self.native.ShowDialog() + + self.start_inner_loop(show) def winforms_FormClosing(self, sender, event): # If the close button is pressed, there won't be a future yet.