aerc

Working clone of aerc-mail.org
git clone git://git.danielmoch.com/aerc.git
Log | Files | Refs | README | LICENSE

commit dc90be24de569a6de1222c6ebbc659814a49d0a2
parent 6728a11fdf863f7a33eb14e84421b828ab28c09f
Author: Drew DeVault <sir@cmpwn.com>
Date:   Mon, 11 Jun 2018 20:13:02 -0400

Fix tab invalidation bugs

Diffstat:
Mlib/ui/tab.go | 6+++++-
1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/lib/ui/tab.go b/lib/ui/tab.go @@ -43,7 +43,9 @@ func (tabs *Tabs) invalidateChild(d Drawable) { for i, tab := range tabs.Tabs { if tab.Content == d { if i == tabs.Selected { - tabs.TabContent.Invalidate() + if tabs.onInvalidateContent != nil { + tabs.onInvalidateContent(tabs.TabContent) + } } return } @@ -107,6 +109,8 @@ func (content *TabContent) Invalidate() { if content.onInvalidateContent != nil { content.onInvalidateContent(content) } + tab := content.Tabs[content.Selected] + tab.Content.Invalidate() } func (content *TabContent) OnInvalidate(onInvalidate func(d Drawable)) {