Only show news in help if we're online

This commit is contained in:
Christian Rocha 2020-12-01 16:31:08 -05:00
parent 2eb5f46b01
commit 1922bfaa68

View file

@ -146,7 +146,7 @@ func (m stashModel) helpView() (string, int) {
}
// If there's no filtering happening
if !m.isFiltering() {
if !m.isFiltering() && m.online() {
if m.docState == stashShowNewsDocs {
sectionHelp = []string{"n", "home"}
} else {