Skip to content
emersion edited this page Jan 19, 2017 · 2 revisions

You need to keep your updates to the UI on the same OS thread. Be careful using go foo() and then updating the UI from foo(). One fix is to create a handler that keeps the whole execution in the same thread.

Use ui.QueueMain when updating the UI from another goroutine: https://github.com/andlabs/ui/wiki/Update-your-UI-in-other-goroutine