Skip rendering dirlist if sidebar width is 0
This commit is contained in:
parent
92dc31bad0
commit
2279ac3ab3
1 changed files with 3 additions and 1 deletions
|
@ -48,7 +48,9 @@ func NewAccountView(conf *config.AercConfig, acct *config.AccountConfig,
|
||||||
}
|
}
|
||||||
|
|
||||||
dirlist := NewDirectoryList(acct, logger, worker)
|
dirlist := NewDirectoryList(acct, logger, worker)
|
||||||
|
if (conf.Ui.SidebarWidth > 0) {
|
||||||
grid.AddChild(ui.NewBordered(dirlist, ui.BORDER_RIGHT))
|
grid.AddChild(ui.NewBordered(dirlist, ui.BORDER_RIGHT))
|
||||||
|
}
|
||||||
|
|
||||||
msglist := NewMessageList(conf, logger)
|
msglist := NewMessageList(conf, logger)
|
||||||
grid.AddChild(msglist).At(0, 1)
|
grid.AddChild(msglist).At(0, 1)
|
||||||
|
|
Loading…
Reference in a new issue