From 1922bfaa68369df363555b67da1ca93f20530625 Mon Sep 17 00:00:00 2001 From: Christian Rocha Date: Tue, 1 Dec 2020 16:31:08 -0500 Subject: [PATCH] Only show news in help if we're online --- ui/stashhelp.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/stashhelp.go b/ui/stashhelp.go index 2ca57dc..a972ce6 100644 --- a/ui/stashhelp.go +++ b/ui/stashhelp.go @@ -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 {