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))
|
subscriptions.list.SetItem(subscriptions.list.Index(), formatNeighbor(user, subscriptions.subscriptions))
|
||||||
}
|
}
|
||||||
case "Enter", "l", "Right":
|
case "Enter", "l", "Right":
|
||||||
subscriptions.subscriptions.Write()
|
if len(subscriptions.list.Items()) > 0 {
|
||||||
ui.ViewChange <- NewUserPage(subscriptions.neighbors[subscriptions.list.Index()].Name)
|
subscriptions.subscriptions.Write()
|
||||||
|
ui.ViewChange <- NewUserPage(subscriptions.neighbors[subscriptions.list.Index()].Name)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
processed = true
|
processed = true
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue