diff options
Diffstat (limited to 'widgets/account.go')
-rw-r--r-- | widgets/account.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/widgets/account.go b/widgets/account.go index 2d3b0d2a..93403709 100644 --- a/widgets/account.go +++ b/widgets/account.go @@ -246,6 +246,7 @@ func (acct *AccountView) onMessage(msg types.WorkerMessage) { case *types.Connect, *types.Reconnect: acct.SetStatus(statusline.ConnectionActivity("Listing mailboxes...")) acct.logger.Println("Listing mailboxes...") + acct.dirlist.SetConnected(true) acct.dirlist.UpdateList(func(dirs []string) { var dir string for _, _dir := range dirs { @@ -266,6 +267,7 @@ func (acct *AccountView) onMessage(msg types.WorkerMessage) { acct.newConn = true }) case *types.Disconnect: + acct.dirlist.SetConnected(false) acct.dirlist.UpdateList(nil) acct.msglist.SetStore(nil) acct.logger.Println("Disconnected.") |