summaryrefslogtreecommitdiff
path: root/view.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-01-30 01:20:36 -0600
committerJeff Carr <[email protected]>2024-01-30 01:20:36 -0600
commit50fe92a1b184a12d25fe8f65c1743d6189498501 (patch)
treefde04e837c29922f28ab03953ade64b0bb9e1d83 /view.go
parent55735daeec1e033534b6d626e9719d23c6af6027 (diff)
delete window
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'view.go')
-rw-r--r--view.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/view.go b/view.go
index 4da4ada..633eaa4 100644
--- a/view.go
+++ b/view.go
@@ -169,6 +169,9 @@ func (w *guiWidget) recreateView() {
}
func (w *guiWidget) hideWidgets() {
+ if w == nil {
+ return
+ }
w.isCurrent = false
switch w.node.WidgetType {
case widget.Root: