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
1 changed files with 1 additions and 1 deletions
|
@ -129,7 +129,7 @@ func (dirlist *DirectoryList) Select(name string) {
|
||||||
|
|
||||||
go func() {
|
go func() {
|
||||||
select {
|
select {
|
||||||
case <-time.After(dirlist.aercConf.Ui.DirListDelay):
|
case <-time.After(dirlist.UiConfig().DirListDelay):
|
||||||
dirlist.worker.PostAction(&types.OpenDirectory{Directory: name},
|
dirlist.worker.PostAction(&types.OpenDirectory{Directory: name},
|
||||||
func(msg types.WorkerMessage) {
|
func(msg types.WorkerMessage) {
|
||||||
switch msg.(type) {
|
switch msg.(type) {
|
||||||
|
|
Loading…
Reference in a new issue