save selected sidebar tab

This commit is contained in:
Drew Weymouth
2025-11-01 12:45:09 -07:00
parent 694e59d5b6
commit 33eb081ff9
3 changed files with 18 additions and 0 deletions
+8
View File
@@ -71,6 +71,14 @@ func NewSidebar(contr *controller.Controller, pm *backend.PlaybackManager, im *b
return s
}
func (s *Sidebar) SelectedIndex() int {
return s.tabs.SelectedIndex()
}
func (s *Sidebar) SetSelectedIndex(idx int) {
s.tabs.SelectIndex(idx)
}
func (s *Sidebar) SetQueueTracks(items []mediaprovider.MediaItem) {
s.queueList.SetItems(items)
}