From: Claudio Cambra Date: Tue, 29 Oct 2024 09:31:17 +0000 (+0800) Subject: Rewrite setResult:forPath: method signature for SyncClient and FinderSync X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~58^2^2~41^2~1 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=87d90aba2718f99e6421ca709ac07e55dd35bcd8;p=nextcloud-desktop.git Rewrite setResult:forPath: method signature for SyncClient and FinderSync Signed-off-by: Claudio Cambra --- diff --git a/shell_integration/MacOSX/NextcloudIntegration/FinderSyncExt/FinderSync.m b/shell_integration/MacOSX/NextcloudIntegration/FinderSyncExt/FinderSync.m index 9d2c3a015..822a2b639 100644 --- a/shell_integration/MacOSX/NextcloudIntegration/FinderSyncExt/FinderSync.m +++ b/shell_integration/MacOSX/NextcloudIntegration/FinderSyncExt/FinderSync.m @@ -194,7 +194,7 @@ #pragma mark - SyncClientProxyDelegate implementation -- (void)setResultForPath:(NSString*)path result:(NSString*)result +- (void)setResult:(NSString *)result forPath:(NSString*)path { NSString *normalizedPath = [path decomposedStringWithCanonicalMapping]; [[FIFinderSyncController defaultController] setBadgeIdentifier:result forURL:[NSURL fileURLWithPath:normalizedPath]]; diff --git a/shell_integration/MacOSX/NextcloudIntegration/FinderSyncExt/FinderSyncSocketLineProcessor.m b/shell_integration/MacOSX/NextcloudIntegration/FinderSyncExt/FinderSyncSocketLineProcessor.m index e906154bb..79c5aa6e9 100644 --- a/shell_integration/MacOSX/NextcloudIntegration/FinderSyncExt/FinderSyncSocketLineProcessor.m +++ b/shell_integration/MacOSX/NextcloudIntegration/FinderSyncExt/FinderSyncSocketLineProcessor.m @@ -42,7 +42,7 @@ dispatch_async(dispatch_get_main_queue(), ^{ NSLog(@"Setting result %@ for path %@", result, path); - [self.delegate setResultForPath:path result:result]; + [self.delegate setResult:result forPath:path]; }); } else if([command isEqualToString:@"UPDATE_VIEW"]) { NSString *path = [split objectAtIndex:1]; diff --git a/shell_integration/MacOSX/NextcloudIntegration/FinderSyncExt/SyncClient.h b/shell_integration/MacOSX/NextcloudIntegration/FinderSyncExt/SyncClient.h index f8c495a6c..05bbe091c 100644 --- a/shell_integration/MacOSX/NextcloudIntegration/FinderSyncExt/SyncClient.h +++ b/shell_integration/MacOSX/NextcloudIntegration/FinderSyncExt/SyncClient.h @@ -15,7 +15,7 @@ #import @protocol SyncClientDelegate -- (void)setResultForPath:(NSString *)path result:(NSString *)result; +- (void)setResult:(NSString *)result forPath:(NSString *)path; - (void)reFetchFileNameCacheForPath:(NSString *)path; - (void)registerPath:(NSString *)path; - (void)unregisterPath:(NSString *)path;