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>
This commit is contained in:
parent
7811620eb8
commit
91ead11c47
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue