aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2019-10-09 19:57:53 -0400
committerDrew DeVault <sir@cmpwn.com>2019-10-09 19:57:53 -0400
commitf1b365dfc30b7253f3baea270ebcc8d1fb754db9 (patch)
tree4dc2e2aacf4c1d160544808aba8e02d0cad4939a /lib
parentd3379dd7f0d2e5caffeda4a97fc72649421cccca (diff)
downloadaerc-f1b365dfc30b7253f3baea270ebcc8d1fb754db9.tar.gz
Revert "Show spinner when fetching contents"
This reverts commit 1339faf7881f33762c6e0a4915404e362fc51de1.
Diffstat (limited to 'lib')
-rw-r--r--lib/msgstore.go9
1 files changed, 3 insertions, 6 deletions
diff --git a/lib/msgstore.go b/lib/msgstore.go
index 68e20d58..071a5042 100644
--- a/lib/msgstore.go
+++ b/lib/msgstore.go
@@ -11,10 +11,9 @@ import (
// Accesses to fields must be guarded by MessageStore.Lock/Unlock
type MessageStore struct {
- Deleted map[uint32]interface{}
- DirInfo models.DirectoryInfo
- Messages map[uint32]*models.MessageInfo
- FetchingContents bool
+ Deleted map[uint32]interface{}
+ DirInfo models.DirectoryInfo
+ Messages map[uint32]*models.MessageInfo
// Ordered list of known UIDs
uids []uint32
@@ -161,7 +160,6 @@ func (store *MessageStore) Update(msg types.WorkerMessage) {
store.worker.PostAction(&types.FetchDirectoryContents{
SortCriteria: store.defaultSortCriteria,
}, nil)
- store.FetchingContents = true
update = true
case *types.DirectoryContents:
newMap := make(map[uint32]*models.MessageInfo)
@@ -175,7 +173,6 @@ func (store *MessageStore) Update(msg types.WorkerMessage) {
}
store.Messages = newMap
store.uids = msg.Uids
- store.FetchingContents = false
update = true
case *types.MessageInfo:
if existing, ok := store.Messages[msg.Info.Uid]; ok && existing != nil {