marinofaggiana 3 gadi atpakaļ
vecāks
revīzija
b57616a25e

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

@@ -136,6 +136,7 @@ class NCCollectionViewCommon: UIViewController, UIGestureRecognizerDelegate, UIS
     override func viewWillAppear(_ animated: Bool) {
         super.viewWillAppear(animated)
 
+        // ACTIVE
         appDelegate.activeViewController = self
 
         if serverUrl == "" {
@@ -256,7 +257,6 @@ class NCCollectionViewCommon: UIViewController, UIGestureRecognizerDelegate, UIS
             selectOcId.removeAll()
         }
         
-        // set active serverUrl
         if self.view?.window != nil {
             if serverUrl == "" {
                 appDelegate.activeServerUrl = NCUtilityFileSystem.shared.getHomeServer(urlBase: appDelegate.urlBase, account: appDelegate.account)

+ 1 - 0
iOSClient/Media/NCMedia.swift

@@ -320,6 +320,7 @@ extension NCMedia: UICollectionViewDelegate {
             
         } else {
             
+            // ACTIVE SERVERURL
             appDelegate.activeServerUrl = metadataTouch!.serverUrl
             let cell = collectionView.dequeueReusableCell(withReuseIdentifier: "gridCell", for: indexPath) as? NCGridMediaCell
             NCViewer.shared.view(viewController: self, metadata: metadataTouch!, metadatas: metadatas, imageIcon: cell?.imageItem.image)