Add progressBar as Next, Previous Actions' refreshable

This commit is contained in:
aditya-K2
2023-04-26 04:08:49 +05:30
parent 62a24db092
commit 3ff51ba5c3

View File

@@ -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,