diff options
| author | Jeff Carr <[email protected]> | 2021-10-05 10:23:27 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2021-10-05 10:23:27 -0500 |
| commit | 7ba7b97fa9d385e18c1f9636553db254f14383d0 (patch) | |
| tree | 973da9d78f143ffd9e7faab06fa9b67499f4fe0f /structs.go | |
| parent | 11815517c6e566e47d3da61c4b852dd791dbd799 (diff) | |
BUG: fix potential 'nil' reference
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'structs.go')
| -rw-r--r-- | structs.go | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -105,6 +105,13 @@ func (s GuiBox) SetTitle(title string) { return } +func (s GuiBox) Append(child ui.Control, x bool) { + if (s.UiBox == nil) { + return + } + s.UiBox.Append(child, x) +} + func (s GuiBox) InitTab(title string) *ui.Tab { if (s.Window == nil) { return nil |
