remove Recently Played, Frequently Played album sort orders for Jellyfin

This commit is contained in:
Drew Weymouth
2023-11-14 16:58:04 -08:00
parent ecfba0a463
commit aba2076894
2 changed files with 11 additions and 20 deletions
+5 -4
View File
@@ -35,11 +35,12 @@ func (a *albumsPageAdapter) PlaceholderResource() fyne.Resource { return myTheme
func (a *albumsPageAdapter) Route() controller.Route { return controller.AlbumsRoute() }
func (a *albumsPageAdapter) SortOrders() ([]string, string) {
orders := a.contr.App.ServerManager.Server.AlbumSortOrders()
if !sharedutil.SliceContains(a.mp.AlbumSortOrders(), a.cfg.SortOrder) {
a.cfg.SortOrder = string(a.mp.AlbumSortOrders()[0])
orders := a.mp.AlbumSortOrders()
sortOrder := a.cfg.SortOrder
if !sharedutil.SliceContains(orders, sortOrder) {
sortOrder = string(orders[0])
}
return orders, a.cfg.SortOrder
return orders, sortOrder
}
func (a *albumsPageAdapter) SaveSortOrder(order string) {