summary refs log tree commit diff stats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/ui/tab.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/ui/tab.go b/lib/ui/tab.go
index 107ff5d..f18b0ac 100644
--- 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)) {
Initial commit' href='/akspecs/aerc/commit/cmd/aerc/main.go?h=0.1.1&id=aeb700577b5b2955c75093129e01de49b92f124f'>aeb7005
a21afda ^






1767e4f ^
a21afda ^

a0be5e8 ^

39c93d2 ^

60b351b ^
cab3771 ^
77a0f68 ^


1418e1b ^
60b351b ^
1418e1b ^

661e3ec ^

305446a ^
6394e38 ^
aeb7005
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45