marinofaggiana 3 жил өмнө
parent
commit
c978a83714

+ 2 - 3
iOSClient/Main/Collection Common/NCCollectionViewCommon.swift

@@ -254,7 +254,6 @@ class NCCollectionViewCommon: UIViewController, UIGestureRecognizerDelegate, UIS
         if isEditMode {
             isEditMode = !isEditMode
             selectOcId.removeAll()
-            setNavigationItem()
         }
         
         // set active serverUrl
@@ -270,10 +269,10 @@ class NCCollectionViewCommon: UIViewController, UIGestureRecognizerDelegate, UIS
             appDelegate.listOfflineVC.removeAll()
         }
         
-        if self is NCFiles || self is NCFavorite || self is NCOffline {
+        if serverUrl != "" {
             self.navigationController?.popToRootViewController(animated: false)
         }
-       
+        
         setNavigationItem()
         reloadDataSource()
         changeTheming()