mirror of
https://github.com/aditya-K2/gspt.git
synced 2026-01-08 21:37:58 -05:00
Add progressBar as Next, Previous Actions' refreshable
This commit is contained in:
@@ -241,14 +241,14 @@ func NewApplication() *tview.Application {
|
||||
return e
|
||||
}
|
||||
return nil
|
||||
}, nil),
|
||||
}, progressBar),
|
||||
"previous": NewAction(func(e *tcell.EventKey) *tcell.EventKey {
|
||||
if err := spt.Previous(); err != nil {
|
||||
SendNotification(err.Error())
|
||||
return e
|
||||
}
|
||||
return nil
|
||||
}, nil),
|
||||
}, progressBar),
|
||||
}
|
||||
playlistNav.SetActions(utils.MergeMaps(globalActions, map[string]*Action{
|
||||
"play_entry": NewAction(playlistNav.PlaySelectEntry,
|
||||
|
||||
Reference in New Issue
Block a user