mirror of
https://github.com/aditya-K2/gspt.git
synced 2026-01-09 22:08:04 -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 e
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
}, nil),
|
}, progressBar),
|
||||||
"previous": NewAction(func(e *tcell.EventKey) *tcell.EventKey {
|
"previous": NewAction(func(e *tcell.EventKey) *tcell.EventKey {
|
||||||
if err := spt.Previous(); err != nil {
|
if err := spt.Previous(); err != nil {
|
||||||
SendNotification(err.Error())
|
SendNotification(err.Error())
|
||||||
return e
|
return e
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
}, nil),
|
}, progressBar),
|
||||||
}
|
}
|
||||||
playlistNav.SetActions(utils.MergeMaps(globalActions, map[string]*Action{
|
playlistNav.SetActions(utils.MergeMaps(globalActions, map[string]*Action{
|
||||||
"play_entry": NewAction(playlistNav.PlaySelectEntry,
|
"play_entry": NewAction(playlistNav.PlaySelectEntry,
|
||||||
|
|||||||
Reference in New Issue
Block a user