aboutsummaryrefslogtreecommitdiffstats
path: root/commands/new-account.go
diff options
context:
space:
mode:
authorKoni Marti <koni.marti@gmail.com>2023-08-02 11:54:13 +0200
committerRobin Jarry <robin@jarry.cc>2023-08-03 22:25:42 +0200
commit6713a8f4588f26f46c3e5fe0a69ead0f345617f3 (patch)
treee4ad5c23af2b812450acd151b158a1e2f4f21b61 /commands/new-account.go
parente32cf3d478e746e1a83a1289e47399087fe1fda3 (diff)
downloadaerc-6713a8f4588f26f46c3e5fe0a69ead0f345617f3.tar.gz
wizard: display warning when focus is lost
Display the warning that the password is stored in plaintext after the focus of the password input field is lost. The current behavior of showing the warning after the first character is entered is ackward and confusing. It also eliminates the need to debounce the warning when a password is pasted. Reported-by: Brad <super1337@posteo.net> Signed-off-by: Koni Marti <koni.marti@gmail.com> Acked-by: Robin Jarry <robin@jarry.cc>
Diffstat (limited to 'commands/new-account.go')
-rw-r--r--commands/new-account.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/commands/new-account.go b/commands/new-account.go
index 2747b159..d67b5eca 100644
--- a/commands/new-account.go
+++ b/commands/new-account.go
@@ -32,6 +32,7 @@ func (NewAccount) Execute(aerc *widgets.Aerc, args []string) error {
wizard.ConfigureTemporaryAccount(true)
}
}
+ wizard.Focus(true)
aerc.NewTab(wizard, "New account")
return nil
}