diff options
Diffstat (limited to 'lib/ui/tab.go')
-rw-r--r-- | lib/ui/tab.go | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/lib/ui/tab.go b/lib/ui/tab.go index d336d646..b992a8a2 100644 --- a/lib/ui/tab.go +++ b/lib/ui/tab.go @@ -1,7 +1,6 @@ package ui import ( - "io" "sync" "github.com/gdamore/tcell/v2" @@ -116,9 +115,6 @@ func (tabs *Tabs) Replace(contentSrc Drawable, contentTarget Drawable, name stri if tab.Content == contentSrc { tabs.tabs[i] = replaceTab tabs.selectPriv(i) - if c, ok := contentSrc.(io.Closer); ok { - c.Close() - } break } } |