Browse Source

Fix Form.Clear deadlock

Resolves #28.
tablepad
Trevor Slocum 2 years ago
parent
commit
fb4953b17a
  1. 1
      CHANGELOG
  2. 2
      form.go

1
CHANGELOG

@ -1,6 +1,7 @@
v1.4.8 (WIP)
- Add italic text formatting flag
- Add Modal.GetForm and Modal.GetFrame
- Fix Form.Clear deadlock
- Fill nil Flex space with default background color
v1.4.7 (2020-06-09)

2
form.go

@ -332,7 +332,7 @@ func (f *Form) Clear(includeButtons bool) *Form {
f.items = nil
if includeButtons {
f.ClearButtons()
f.buttons = nil
}
f.focusedElement = 0
return f

Loading…
Cancel
Save