fix panic
parent
1e92e88b5a
commit
ce6832dd76
|
@ -67,8 +67,10 @@ func (subscriptions *Subscriptions) Event(state *ui.State, event vaxis.Event) (p
|
|||
subscriptions.list.SetItem(subscriptions.list.Index(), formatNeighbor(user, subscriptions.subscriptions))
|
||||
}
|
||||
case "Enter", "l", "Right":
|
||||
subscriptions.subscriptions.Write()
|
||||
ui.ViewChange <- NewUserPage(subscriptions.neighbors[subscriptions.list.Index()].Name)
|
||||
if len(subscriptions.list.Items()) > 0 {
|
||||
subscriptions.subscriptions.Write()
|
||||
ui.ViewChange <- NewUserPage(subscriptions.neighbors[subscriptions.list.Index()].Name)
|
||||
}
|
||||
}
|
||||
processed = true
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue