diff options
author | inwit <inwit@sindominio.net> | 2022-02-24 13:21:45 +0100 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2022-02-24 17:45:56 +0100 |
commit | 91ead11c47252ca8998fdad7b0770d6b8d07c987 (patch) | |
tree | 3d853d9124bd9671ef3d50bab0245dca3dcc9507 /widgets | |
parent | 7811620eb809fb9c2eb0c015e7c1fc6d17dc05ac (diff) | |
download | aerc-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')
-rw-r--r-- | widgets/dirlist.go | 2 |
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) { |