aboutsummaryrefslogtreecommitdiffstats
path: root/widgets
diff options
context:
space:
mode:
authorRobin Jarry <robin@jarry.cc>2023-09-24 17:01:04 +0200
committerRobin Jarry <robin@jarry.cc>2023-09-27 23:15:06 +0200
commitd708f1a6f30160e0329d33fb739ef73a31171022 (patch)
treee1538083e6be59c18e7ac1b3e23df3c64639a98f /widgets
parent55bcca4a31f29d58f2cc07dc0b17e2fd7da5f590 (diff)
downloadaerc-d708f1a6f30160e0329d33fb739ef73a31171022.tar.gz
viewer: use correct contextual config for no-filter message
When no filter is configured for a part, use the correct account contextual ui config. Signed-off-by: Robin Jarry <robin@jarry.cc> Acked-by: Tim Culverhouse <tim@timculverhouse.com>
Diffstat (limited to 'widgets')
-rw-r--r--widgets/msgviewer.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/widgets/msgviewer.go b/widgets/msgviewer.go
index 41cb639e..90f41167 100644
--- a/widgets/msgviewer.go
+++ b/widgets/msgviewer.go
@@ -837,7 +837,7 @@ func newNoFilterConfigured(account string, part *models.BodyStructure) *ui.Grid
{Strategy: ui.SIZE_WEIGHT, Size: ui.Const(1)},
})
- uiConfig := config.Ui
+ uiConfig := config.Ui.ForAccount(account)
noFilter := fmt.Sprintf(`No filter configured for this mimetype ('%s')
What would you like to do?`, part.FullMIMEType())