Fix Application.QueueEvent

Resolves #76.
This commit is contained in:
Trevor Slocum 2021-08-08 17:16:04 -07:00
parent 492ab21896
commit 4616c03bbe
2 changed files with 11 additions and 0 deletions

View File

@ -1,6 +1,7 @@
v1.5.7 (WIP)
- Add Application.HandlePanic
- Add Modal.SetButtonsAlign and Modal.SetTextAlign
- Fix Application.QueueEvent
- Fix TextView.GetRegionText error when text contains color tags
- Fix TextView region tags when placed at the end of a line
- Do not customize Modal window styling by default (use GetForm and GetFrame to customize)

View File

@ -451,6 +451,16 @@ func (a *Application) Run() error {
}
}()
go func() {
defer a.HandlePanic()
for event := range a.events {
semaphore.Lock()
handle(event)
semaphore.Unlock()
}
}()
// Start screen event loop.
for {
a.Lock()