walk icon indicating copy to clipboard operation
walk copied to clipboard

Add RunWithContext function

Open kukymbr opened this issue 2 years ago • 1 comments

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.

kukymbr avatar Oct 16 '23 09:10 kukymbr

@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.

gen2brain avatar Oct 21 '23 09:10 gen2brain