Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add RunWithContext function #826

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

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.

None yet

2 participants