marinofaggiana 4 years ago
parent
commit
b571785bbf
1 changed files with 2 additions and 2 deletions
  1. 2 2
      iOSClient/Main/Menu/NCCollectionViewCommon+Menu.swift

+ 2 - 2
iOSClient/Main/Menu/NCCollectionViewCommon+Menu.swift

@@ -69,7 +69,7 @@ extension NCCollectionViewCommon {
         )
 
         // Favorite
-        if layoutKey == k_layout_view_favorite && serverUrl == "" {
+        if (layoutKey == k_layout_view_favorite && serverUrl == "") || (layoutKey != k_layout_view_favorite) {
             actions.append(
                 NCMenuAction(
                     title: NSLocalizedString("_remove_favorites_", comment: ""),
@@ -82,7 +82,7 @@ extension NCCollectionViewCommon {
         }
         
         // Offline
-        if layoutKey == k_layout_view_offline && self.serverUrl == "" {
+        if layoutKey == k_layout_view_offline && self.serverUrl == "" || (layoutKey != k_layout_view_offline) {
             actions.append(
                 NCMenuAction(
                     title: NSLocalizedString("_remove_available_offline_", comment: ""),