aboutsummaryrefslogtreecommitdiffstats
path: root/widgets
diff options
context:
space:
mode:
authorLucas F. Souza <me@lucasfsouza.com.br>2019-06-05 23:20:27 +0200
committerDrew DeVault <sir@cmpwn.com>2019-06-07 09:20:06 -0400
commit2279ac3ab3d19cd233600907bc8e3e8b4e57b350 (patch)
tree041ed5fb64fcf4c48fd02985079342b50bac6732 /widgets
parent92dc31bad0dc69fa96b04242b635fee051ed1965 (diff)
downloadaerc-2279ac3ab3d19cd233600907bc8e3e8b4e57b350.tar.gz
Skip rendering dirlist if sidebar width is 0
Diffstat (limited to 'widgets')
-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)