summaryrefslogtreecommitdiff
path: root/toolkit/gocui/add.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2023-04-26 14:25:48 -0500
committerJeff Carr <[email protected]>2023-04-26 14:25:48 -0500
commitd4b0b8b6b6e3141114ebb448438922192c725763 (patch)
tree7439b651b89c68ec117adaf3126e7b5bcbc677f4 /toolkit/gocui/add.go
parent18661d38da0a56c2044b6964f2e09f8bb81d1be3 (diff)
gocui: code cleanups
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'toolkit/gocui/add.go')
-rw-r--r--toolkit/gocui/add.go8
1 files changed, 6 insertions, 2 deletions
diff --git a/toolkit/gocui/add.go b/toolkit/gocui/add.go
index 6efbbc2..856b871 100644
--- a/toolkit/gocui/add.go
+++ b/toolkit/gocui/add.go
@@ -48,8 +48,12 @@ func (w *cuiWidget) addWidget() {
w.showView()
return
case toolkit.Tab:
- w.setTabWH()
- w.showView()
+ UnsetCurrent(me.rootNode)
+ me.rootNode.hideWidgets()
+ w.isCurrent = true
+ w.parent.isCurrent = true
+ w.placeWidgets()
+ w.showWidgets()
return
case toolkit.Box:
w.isFake = true