marinofaggiana 4 سال پیش
والد
کامیت
b571785bbf
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  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: ""),