diff --git a/ui/stash.go b/ui/stash.go index 5aa0379..a58fbd6 100644 --- a/ui/stash.go +++ b/ui/stash.go @@ -613,6 +613,10 @@ func (m *stashModel) handleDocumentBrowsing(msg tea.Msg) tea.Cmd { // Show news case "n": + if m.general.authStatus == authFailed { + // If we're offline disable the news section + return nil + } if m.state == stashStateShowNews { // Exit news m.state = stashStateReady diff --git a/ui/ui.go b/ui/ui.go index 213812c..a4f2c6a 100644 --- a/ui/ui.go +++ b/ui/ui.go @@ -147,8 +147,8 @@ type general struct { type model struct { general *general - keygenState keygenState state state + keygenState keygenState fatalErr error // Sub-models