"Press any key to close" for completed processes
This commit is contained in:
parent
72e4b5e2b2
commit
71c13c9078
2 changed files with 10 additions and 1 deletions
commands/account
|
@ -44,9 +44,12 @@ func Pipe(aerc *widgets.Aerc, args []string) error {
|
|||
aerc.PushStatus(" "+err.Error(), 10*time.Second).
|
||||
Color(tcell.ColorDefault, tcell.ColorRed)
|
||||
} else {
|
||||
// TODO: Tab-specific status stacks
|
||||
aerc.PushStatus("Process complete, press any key to close.",
|
||||
10*time.Second)
|
||||
term.OnEvent = func(event tcell.Event) bool {
|
||||
aerc.RemoveTab(term)
|
||||
return true
|
||||
}
|
||||
}
|
||||
}
|
||||
term.OnStart = func() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue