summary refs log tree commit diff stats
path: root/widgets
diff options
context:
space:
mode:
authorJeffas <dev@jeffas.io>2019-10-02 11:24:12 +0100
committerDrew DeVault <sir@cmpwn.com>2019-10-09 19:46:43 -0400
commit1339faf7881f33762c6e0a4915404e362fc51de1 (patch)
treee8ffd3d7827a9753c2290869839e77bbe50aa6d3 /widgets
parent00b9ca503286d5dc43def31db713e853c8aeee13 (diff)
downloadaerc-1339faf7881f33762c6e0a4915404e362fc51de1.tar.gz
Show spinner when fetching contents
The spinner should be shown when fetching the contents as we don't know
at that point whether there are some messages or not.
Diffstat (limited to 'widgets')
-rw-r--r--widgets/msglist.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/widgets/msglist.go b/widgets/msglist.go
index 5c2d2f4..729b65f 100644
--- a/widgets/msglist.go
+++ b/widgets/msglist.go
@@ -61,6 +61,9 @@ func (ml *MessageList) Draw(ctx *ui.Context) {
 			ml.drawEmptyMessage(ctx)
 			return
 		}
+	} else if store.FetchingContents {
+		ml.spinner.Draw(ctx)
+		return
 	}
 
 	var (
revious revision' href='/danisanti/profani-tty/blame/src/chat_state.c?id=76bd2ec13f5ffc21ddf91eebf3cb2e6dafe3ad75'>^
f2728096 ^
c16871d1 ^









f2728096 ^













c16871d1 ^
f2728096 ^
c16871d1 ^
c16871d1 ^


f2728096 ^
c16871d1 ^
c16871d1 ^























































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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172