diff options
Diffstat (limited to 'app')
-rw-r--r-- | app/account.go | 7 | ||||
-rw-r--r-- | app/app.go | 1 | ||||
-rw-r--r-- | app/compose.go | 4 |
3 files changed, 8 insertions, 4 deletions
diff --git a/app/account.go b/app/account.go index 45321755..7a2cf582 100644 --- a/app/account.go +++ b/app/account.go @@ -194,6 +194,13 @@ func (acct *AccountView) Directories() DirectoryLister { return acct.dirlist } +func (acct *AccountView) SetDirectories(d DirectoryLister) { + if acct.grid != nil { + acct.grid.ReplaceChild(acct.dirlist, d) + } + acct.dirlist = d +} + func (acct *AccountView) Labels() []string { return acct.labels } @@ -51,6 +51,7 @@ func PinTab() { aerc.PinTab() } func UnpinTab() { aerc.UnpinTab() } func MoveTab(i int, relative bool) { aerc.MoveTab(i, relative) } func TabNames() []string { return aerc.TabNames() } +func GetTab(i int) *ui.Tab { return aerc.tabs.Get(i) } func SelectTab(name string) bool { return aerc.SelectTab(name) } func SelectPreviousTab() bool { return aerc.SelectPreviousTab() } func SelectedTab() *ui.Tab { return aerc.SelectedTab() } diff --git a/app/compose.go b/app/compose.go index 0f4ada62..7a581505 100644 --- a/app/compose.go +++ b/app/compose.go @@ -137,10 +137,6 @@ func (c *Composer) Parent() *models.OriginalMail { } func (c *Composer) SwitchAccount(newAcct *AccountView) error { - if c.acct == newAcct { - log.Tracef("same accounts: no switch") - return nil - } // sync the header with the editors for _, editor := range c.editors { editor.storeValue() |