Write new accounts to config and open tab

This commit is contained in:
Drew DeVault 2019-05-22 10:40:08 -04:00
commit 937b33c850
2 changed files with 140 additions and 8 deletions

View file

@ -14,7 +14,7 @@ func CommandNewAccount(aerc *widgets.Aerc, args []string) error {
if len(args) != 1 {
return errors.New("Usage: new-account")
}
wizard := widgets.NewAccountWizard()
wizard := widgets.NewAccountWizard(aerc.Config(), aerc)
aerc.NewTab(wizard, "New account")
return nil
}