зеркало из https://github.com/nextcloud/desktop.git
Rewrite setResult:forPath: method signature for SyncClient and FinderSync
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
Родитель
a72670c6dc
Коммит
87d90aba27
|
@ -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]];
|
||||
|
|
|
@ -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];
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
#import <Foundation/Foundation.h>
|
||||
|
||||
@protocol SyncClientDelegate <NSObject>
|
||||
- (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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче