Browse Source

clear code

Marino Faggiana 7 years ago
parent
commit
4ac6370239
2 changed files with 7 additions and 6 deletions
  1. 3 3
      iOSClient/AppDelegate.m
  2. 4 3
      iOSClient/CCGlobal.h

+ 3 - 3
iOSClient/AppDelegate.m

@@ -830,13 +830,13 @@
     item.selectedImage = [UIImage imageNamed:@"tabBarFiles"];
     
     // Favorites
-    item = [tabBarController.tabBar.items objectAtIndex: k_tabBarApplicationIndexOffline];
+    item = [tabBarController.tabBar.items objectAtIndex: k_tabBarApplicationIndexFavorite];
     [item setTitle:NSLocalizedString(@"_favorites_", nil)];
     item.image = [UIImage imageNamed:@"tabBarFavorite"];
     item.selectedImage = [UIImage imageNamed:@"tabBarFavorite"];
     
-    // Hide (PLUS)
-    item = [tabBarController.tabBar.items objectAtIndex: k_tabBarApplicationIndexHide];
+    // (PLUS)
+    item = [tabBarController.tabBar.items objectAtIndex: k_tabBarApplicationIndexPlusHide];
     item.title = nil;
     item.image = nil;
     item.enabled = false;

+ 4 - 3
iOSClient/CCGlobal.h

@@ -242,16 +242,17 @@ extern NSString *const urlBaseUploadDB;
 #define k_metadataTypeFilenameCrypto                    2
 
 // Metadata : Status
-
 #define k_metadataStatusNormal                          0
 #define k_metadataStatusHide                            1
 
+// TabBar button
 #define k_tabBarApplicationIndexFile                    0
-#define k_tabBarApplicationIndexOffline                 1
-#define k_tabBarApplicationIndexHide                    2
+#define k_tabBarApplicationIndexFavorite                1
+#define k_tabBarApplicationIndexPlusHide                2
 #define k_tabBarApplicationIndexPhotos                  3
 #define k_tabBarApplicationIndexMore                    4
 
+// Filename Mask and Type
 #define k_keyFileNameMask                               @"fileNameMask"
 #define k_keyFileNameType                               @"fileNameType"
 #define k_keyFileNameAutoUploadMask                     @"fileNameAutoUploadMask"