about summary refs log tree commit diff stats
path: root/widgets/dirlist.go
diff options
context:
space:
mode:
authorReto Brunner <reto@labrat.space>2020-02-19 08:37:20 +0100
committerReto Brunner <reto@labrat.space>2020-02-19 08:37:20 +0100
commitd44bdc9fb99463081fa622589f7432191dd8b30d (patch)
tree969cc47ed46cda3ec7437544cd0d67069efdae21 /widgets/dirlist.go
parentbcab8de07272699e218bafb1c37c1871f3640336 (diff)
downloadaerc-d44bdc9fb99463081fa622589f7432191dd8b30d.tar.gz
Revert "Only fetch the directory contents when we are switching directories"
This reverts commit bd4df530095ee343778a59120a9e641c01010b0f.

I did not properly untangle the opening / dirlist update of each other.
This interferes with the imap worker, hence the revert
Diffstat (limited to 'widgets/dirlist.go')
-rw-r--r--widgets/dirlist.go5
1 files changed, 0 insertions, 5 deletions
diff --git a/widgets/dirlist.go b/widgets/dirlist.go
index 81a97cc..70263a9 100644
--- a/widgets/dirlist.go
+++ b/widgets/dirlist.go
@@ -11,7 +11,6 @@ import (
 
 	"git.sr.ht/~sircmpwn/aerc/config"
 	"git.sr.ht/~sircmpwn/aerc/lib"
-	libsort "git.sr.ht/~sircmpwn/aerc/lib/sort"
 	"git.sr.ht/~sircmpwn/aerc/lib/ui"
 	"git.sr.ht/~sircmpwn/aerc/models"
 	"git.sr.ht/~sircmpwn/aerc/worker/types"
@@ -105,10 +104,6 @@ func (dirlist *DirectoryList) Select(name string) {
 				}
 				sort.Strings(dirlist.dirs)
 				dirlist.sortDirsByFoldersSortConfig()
-				// once opened, we need to enumerate the contents
-				dirlist.worker.PostAction(&types.FetchDirectoryContents{
-					SortCriteria: dirlist.getSortCriteria(),
-				}, nil)
 			}
 			dirlist.Invalidate()
 		})