From 87d90aba2718f99e6421ca709ac07e55dd35bcd8 Mon Sep 17 00:00:00 2001 From: Claudio Cambra Date: Tue, 29 Oct 2024 17:31:17 +0800 Subject: [PATCH] Rewrite setResult:forPath: method signature for SyncClient and FinderSync Signed-off-by: Claudio Cambra --- .../MacOSX/NextcloudIntegration/FinderSyncExt/FinderSync.m | 2 +- .../FinderSyncExt/FinderSyncSocketLineProcessor.m | 2 +- .../MacOSX/NextcloudIntegration/FinderSyncExt/SyncClient.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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;