Browse Source

Fix Application.QueueEvent

Resolves #76.
master
Trevor Slocum 5 months ago
parent
commit
4616c03bbe
  1. 1
      CHANGELOG
  2. 10
      application.go

1
CHANGELOG

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

10
application.go

@ -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()

Loading…
Cancel
Save