Browse Source

coding

Signed-off-by: marinofaggiana <ios@nextcloud.com>
marinofaggiana 2 years ago
parent
commit
4278be193a

+ 1 - 1
iOSClient/Main/Collection Common/NCCollectionViewCommon.swift

@@ -1817,7 +1817,7 @@ extension NCCollectionViewCommon: UICollectionViewDataSource {
                 }
 
                 header.delegate = self
-                header.setStatusButtonsView(enable: dataSource.metadatasSource.count > 0)
+                header.setStatusButtonsView(enable: !dataSource.metadatasSource.isEmpty)
                 header.setSortedTitle(layoutForView?.titleButtonHeader ?? "")
                 header.setRichWorkspaceText(richWorkspaceText)
                 header.labelSection.text = self.dataSource.getSectionValue(indexPath: indexPath).firstUppercased

+ 1 - 1
iOSClient/Select/NCSelect.swift

@@ -624,7 +624,7 @@ extension NCSelect: UICollectionViewDataSource {
                 }
 
                 header.delegate = self
-                header.setStatusButtonsView(enable: dataSource.metadatasSource.count > 0)
+                header.setStatusButtonsView(enable: !dataSource.metadatasSource.isEmpty)
                 header.setSortedTitle(layoutForView?.titleButtonHeader ?? "")
                 header.setRichWorkspaceText(richWorkspaceText)
                 header.labelSection.text = self.dataSource.getSectionValue(indexPath: indexPath).firstUppercased

+ 1 - 1
iOSClient/Trash/NCTrash+CollectionView.swift

@@ -155,7 +155,7 @@ extension NCTrash: UICollectionViewDataSource {
             }
 
             header.delegate = self
-            header.setStatusButtonsView(enable: datasource.count > 0)
+            header.setStatusButtonsView(enable: !datasource.isEmpty)
             header.setSortedTitle(layoutForView?.titleButtonHeader ?? "")
 
             header.buttonMoreIsHidden(false)