Skip to content

Conversation

@kukymbr
Copy link

@kukymbr kukymbr commented Oct 16, 2023

At the moment, there is no way to cancel the GUI's run if something went wrong in some other part of an application.
I propose to add a window.RunWithContext function to pass the context.

@gen2brain
Copy link

@kukymbr Thanks, this is nice. I tried to avoid Run with my message loop, but that only shows an empty window, probably because I cannot call RunSynchronized on the group. With your addition, everything works for me and I can cancel the context to close the window. I hope this will be merged, for now, I am using your forked repo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants