Send Notification if no device found instead of panic

This commit is contained in:
aditya-K2
2023-04-14 22:59:09 +05:30
parent a0cb146a2b
commit ecd771dc68

View File

@@ -88,7 +88,7 @@ func (v *PlaylistNav) MapActions(f map[tcell.Key]string) {
func (v *PlaylistNav) PlaySelectEntry(e *tcell.EventKey) *tcell.EventKey {
r, _ := v.Table.GetSelection()
if err := spt.PlayContext(&(*v.Playlists)[r].URI); err != nil {
panic(err)
SendNotification(err.Error())
}
return nil
}