aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/dirlist.go
diff options
context:
space:
mode:
authorinwit <inwit@sindominio.net>2022-02-24 13:21:45 +0100
committerRobin Jarry <robin@jarry.cc>2022-02-24 17:45:56 +0100
commit91ead11c47252ca8998fdad7b0770d6b8d07c987 (patch)
tree3d853d9124bd9671ef3d50bab0245dca3dcc9507 /widgets/dirlist.go
parent7811620eb809fb9c2eb0c015e7c1fc6d17dc05ac (diff)
downloadaerc-91ead11c47252ca8998fdad7b0770d6b8d07c987.tar.gz
ui: make dirlist-delay context-aware
Allow this in aerc.conf: dirlist-delay=200ms ... [ui:account=CrappyO365Account] dirlist-delay=2000ms Fixes: https://todo.sr.ht/~rjarry/aerc/26 Signed-off-by: Koni Marti <koni.marti@gmail.com> Signed-off-by: inwit <inwit@sindominio.net> Acked-by: Robin Jarry <robin@jarry.cc>
Diffstat (limited to 'widgets/dirlist.go')
-rw-r--r--widgets/dirlist.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/widgets/dirlist.go b/widgets/dirlist.go
index 9535c694..19b45d4d 100644
--- a/widgets/dirlist.go
+++ b/widgets/dirlist.go
@@ -129,7 +129,7 @@ func (dirlist *DirectoryList) Select(name string) {
go func() {
select {
- case <-time.After(dirlist.aercConf.Ui.DirListDelay):
+ case <-time.After(dirlist.UiConfig().DirListDelay):
dirlist.worker.PostAction(&types.OpenDirectory{Directory: name},
func(msg types.WorkerMessage) {
switch msg.(type) {