Display the mimetype when offering to pipe or save

This commit is contained in:
Luke Drummond 2020-01-17 16:32:19 +00:00 committed by Drew DeVault
parent 472c421e85
commit ef029aa263
1 changed files with 3 additions and 1 deletions

View File

@ -625,7 +625,9 @@ func (pv *PartViewer) Draw(ctx *ui.Context) {
// TODO: Let them download it directly or something // TODO: Let them download it directly or something
ctx.Fill(0, 0, ctx.Width(), ctx.Height(), ' ', tcell.StyleDefault) ctx.Fill(0, 0, ctx.Width(), ctx.Height(), ' ', tcell.StyleDefault)
ctx.Printf(0, 0, tcell.StyleDefault.Foreground(tcell.ColorRed), ctx.Printf(0, 0, tcell.StyleDefault.Foreground(tcell.ColorRed),
"No filter configured for this mimetype") "No filter configured for this mimetype ('%s/%s')",
pv.part.MIMEType, pv.part.MIMESubType,
)
ctx.Printf(0, 2, tcell.StyleDefault, ctx.Printf(0, 2, tcell.StyleDefault,
"You can still :save the message or :pipe it to an external command") "You can still :save the message or :pipe it to an external command")
pv.selecter.Focus(true) pv.selecter.Focus(true)