From 91ead11c47252ca8998fdad7b0770d6b8d07c987 Mon Sep 17 00:00:00 2001 From: inwit Date: Thu, 24 Feb 2022 13:21:45 +0100 Subject: [PATCH] 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 Signed-off-by: inwit Acked-by: Robin Jarry --- widgets/dirlist.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/widgets/dirlist.go b/widgets/dirlist.go index 9535c69..19b45d4 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) {