mirror of
https://github.com/aditya-K2/gspt.git
synced 2026-01-08 21:37:58 -05:00
Send Notification if no device found instead of panic
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user