Browse Source

EditToolbar: Cosmetic: Rename buttonList

Soomin Lee 5 years ago
parent
commit
c13dbac893
1 changed files with 5 additions and 5 deletions
  1. 5 5
      Sources/EditToolbar.swift

+ 5 - 5
Sources/EditToolbar.swift

@@ -70,11 +70,11 @@ class EditToolbar: UIView {
     }
 
     func updateEditToolbar(for model: MediaLibraryBaseModel) {
-        var buttonList = EditButtonsFactory.buttonList(for: model.anyfiles.first)
+        var buttonTypeList = EditButtonsFactory.buttonList(for: model.anyfiles.first)
         // For now we remove the first button which is Add to playlist since it is not in the same group
-        if buttonList.contains(.addToPlaylist) {
-            if let index = buttonList.firstIndex(of: .addToPlaylist) {
-                buttonList.remove(at: index)
+        if buttonTypeList.contains(.addToPlaylist) {
+            if let index = buttonTypeList.firstIndex(of: .addToPlaylist) {
+                buttonTypeList.remove(at: index)
             }
         }
 
@@ -83,7 +83,7 @@ class EditToolbar: UIView {
         deleteButton.isHidden = true
         shareButton.isHidden = true
 
-        for buttonType in buttonList {
+        for buttonType in buttonTypeList {
             switch buttonType {
             case .addToPlaylist:
                 addToPlaylistButton.isHidden = false