aboutsummaryrefslogtreecommitdiff
path: root/widgets/account.go
diff options
context:
space:
mode:
Diffstat (limited to 'widgets/account.go')
-rw-r--r--widgets/account.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/widgets/account.go b/widgets/account.go
index 4526c02..0feac4a 100644
--- a/widgets/account.go
+++ b/widgets/account.go
@@ -48,7 +48,9 @@ func NewAccountView(conf *config.AercConfig, acct *config.AccountConfig,
}
dirlist := NewDirectoryList(acct, logger, worker)
- grid.AddChild(ui.NewBordered(dirlist, ui.BORDER_RIGHT))
+ if (conf.Ui.SidebarWidth > 0) {
+ grid.AddChild(ui.NewBordered(dirlist, ui.BORDER_RIGHT))
+ }
msglist := NewMessageList(conf, logger)
grid.AddChild(msglist).At(0, 1)