소스 검색

changed name function

Marino Faggiana 7 년 전
부모
커밋
8228f71b0a
4개의 변경된 파일12개의 추가작업 그리고 12개의 파일을 삭제
  1. 1 1
      iOSClient/Favorites/CCFavorites.h
  2. 9 9
      iOSClient/Favorites/CCFavorites.m
  3. 1 1
      iOSClient/Networking/NCService.swift
  4. 1 1
      iOSClient/Settings/CCSettings.m

+ 1 - 1
iOSClient/Favorites/CCFavorites.h

@@ -47,7 +47,7 @@
 @property (nonatomic, strong) UIDocumentInteractionController *docController;
 
 - (void)reloadDatasource;
-- (void)searchFavorite;
+- (void)listingFavorites;
 - (void)addFavoriteFolder:(NSString *)serverUrl;
 
 @end

+ 9 - 9
iOSClient/Favorites/CCFavorites.m

@@ -194,15 +194,6 @@
     }
 }
 
-- (void)searchFavorite
-{
-    // test
-    if (appDelegate.activeAccount.length == 0)
-        return;
-
-    [[CCActions sharedInstance] listingFavorites:@"" delegate:self];
-}
-
 - (void)addFavoriteFolder:(NSString *)serverUrl
 {
     NSString *directoryID = [[NCManageDatabase sharedInstance] getDirectoryID:serverUrl];
@@ -281,6 +272,15 @@
     }
 }
 
+- (void)listingFavorites
+{
+    // test
+    if (appDelegate.activeAccount.length == 0)
+        return;
+    
+    [[CCActions sharedInstance] listingFavorites:@"" delegate:self];
+}
+
 #pragma --------------------------------------------------------------------------------------------
 #pragma mark ==== Download Thumbnail <Delegate> ====
 #pragma --------------------------------------------------------------------------------------------

+ 1 - 1
iOSClient/Networking/NCService.swift

@@ -235,7 +235,7 @@ class NCService: NSObject, OCNetworkingDelegate {
             appDelegate.settingActiveAccount(tableAccount.account, activeUrl: tableAccount.url, activeUser: tableAccount.user, activeUserID: tableAccount.userID, activePassword: tableAccount.password)
             
             // Call func thath required the userdID
-            appDelegate.activeFavorites.searchFavorite()
+            appDelegate.activeFavorites.listingFavorites()
             appDelegate.activePhotos.searchPhotoVideo()
             
             DispatchQueue.global(qos: .default).async {

+ 1 - 1
iOSClient/Settings/CCSettings.m

@@ -404,7 +404,7 @@
         } 
     }
     
-    [appDelegate.activeFavorites searchFavorite];
+    [appDelegate.activeFavorites listingFavorites];
 }
 
 #pragma --------------------------------------------------------------------------------------------