Fix always showing last account tab
This commit is contained in:
parent
4d6e665204
commit
a7341aff21
1 changed files with 2 additions and 2 deletions
|
@ -56,8 +56,8 @@ func NewAerc(conf *config.AercConfig, logger *log.Logger,
|
||||||
tabs: tabs,
|
tabs: tabs,
|
||||||
}
|
}
|
||||||
|
|
||||||
for _, acct := range conf.Accounts {
|
for i, acct := range conf.Accounts {
|
||||||
view := NewAccountView(conf, &acct, logger, aerc)
|
view := NewAccountView(conf, &conf.Accounts[i], logger, aerc)
|
||||||
aerc.accounts[acct.Name] = view
|
aerc.accounts[acct.Name] = view
|
||||||
tabs.Add(view, acct.Name)
|
tabs.Add(view, acct.Name)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue