Skip rendering dirlist if sidebar width is 0

This commit is contained in:
Lucas F. Souza 2019-06-05 23:20:27 +02:00 committed by Drew DeVault
parent 92dc31bad0
commit 2279ac3ab3
1 changed files with 3 additions and 1 deletions

View File

@ -48,7 +48,9 @@ func NewAccountView(conf *config.AercConfig, acct *config.AccountConfig,
}
dirlist := NewDirectoryList(acct, logger, worker)
if (conf.Ui.SidebarWidth > 0) {
grid.AddChild(ui.NewBordered(dirlist, ui.BORDER_RIGHT))
}
msglist := NewMessageList(conf, logger)
grid.AddChild(msglist).At(0, 1)