Browse Source

MediaCategoryViewController: Add sorting to collections

Closes #537
Soomin Lee 5 years ago
parent
commit
eab270fb5c
1 changed files with 2 additions and 2 deletions
  1. 2 2
      Sources/MediaCategories/MediaCategoryViewController.swift

+ 2 - 2
Sources/MediaCategories/MediaCategoryViewController.swift

@@ -415,8 +415,8 @@ extension MediaCategoryViewController {
         var rightBarButtonItems = [UIBarButtonItem]()
 
         rightBarButtonItems.append(editBarButton)
-        // Sort is only available for VideoGroups
-        if let model = model as? CollectionModel, model.mediaCollection is VLCMLVideoGroup {
+        // Sort is not available for Playlists
+        if let model = model as? CollectionModel, !(model.mediaCollection is VLCMLPlaylist) {
             rightBarButtonItems.append(sortBarButton)
         }
         rightBarButtonItems.append(rendererBarButton)