Browse Source

fix merge error

pull/58/head
Rasmus Lindroth 5 years ago
parent
commit
d6682151d6
  1. 6
      statusview.go

6
statusview.go

@ -92,7 +92,7 @@ func (t *StatusView) AddFeed(f Feed) {
f.DrawToot()
t.drawDesc()
if t.lastList == NotificationPaneFocus {
if t.focus == NotificationPaneFocus {
t.app.UI.SetFocus(LeftPaneFocus)
t.focus = LeftPaneFocus
t.lastList = NotificationPaneFocus
@ -230,10 +230,10 @@ func (t *StatusView) inputBoth(event *tcell.EventKey) {
t.end()
}
}
if len(t.feeds) > 0 && t.lastList == LeftPaneFocus {
if len(t.feeds) > 0 && t.focus == LeftPaneFocus {
feed := t.feeds[t.feedIndex]
feed.Input(event)
} else if t.lastList == NotificationPaneFocus {
} else if t.focus == NotificationPaneFocus {
t.notificationView.feed.Input(event)
}
}

Loading…
Cancel
Save