aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--widgets/account.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/widgets/account.go b/widgets/account.go
index 4526c024..0feac4ae 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)