diff options
| author | Jeff Carr <[email protected]> | 2023-04-26 13:00:58 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2023-04-26 13:00:58 -0500 |
| commit | 18661d38da0a56c2044b6964f2e09f8bb81d1be3 (patch) | |
| tree | a9dcb227c0e509b143b5d810abc8b0d50fbc125c /toolkit | |
| parent | 78c2c9c45f1c3b01d5ab39489b50d969ffc1dd03 (diff) | |
gocui: tabs functional now but not perfectv0.8.3
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'toolkit')
| -rw-r--r-- | toolkit/gocui/click.go | 2 | ||||
| -rw-r--r-- | toolkit/gocui/tab.go | 5 |
2 files changed, 5 insertions, 2 deletions
diff --git a/toolkit/gocui/click.go b/toolkit/gocui/click.go index e03a0e9..14ae53d 100644 --- a/toolkit/gocui/click.go +++ b/toolkit/gocui/click.go @@ -35,7 +35,6 @@ func (w *cuiWidget) doWidgetClick() { me.rootNode.nextW = 0 me.rootNode.nextH = 0 - me.rootNode.redoTabs(true) w.isCurrent = true if w.hasTabs { @@ -45,6 +44,7 @@ func (w *cuiWidget) doWidgetClick() { break } } + me.rootNode.redoTabs(true) w.placeWidgets() w.showWidgets() diff --git a/toolkit/gocui/tab.go b/toolkit/gocui/tab.go index ae38b17..8ce298c 100644 --- a/toolkit/gocui/tab.go +++ b/toolkit/gocui/tab.go @@ -126,7 +126,10 @@ func (w *cuiWidget) redoTabs(draw bool) { if (w.widgetType == toolkit.Tab) { w.setTabWH() w.deleteView() - w.showView() + // show all the tabs for the current window + if w.parent.isCurrent { + w.showView() + } } for _, child := range w.children { |
