Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/owncloud/client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJocelyn Turcotte <jturcotte@woboq.com>2015-07-31 22:40:51 +0300
committerJocelyn Turcotte <jturcotte@woboq.com>2015-07-31 22:59:58 +0300
commitdcf7e8a6318aa34f306b47ba3f764dd938b56624 (patch)
treee16589ab8bf72628eadeac5095384fd91173a658 /shell_integration/MacOSX/OwnCloudFinderSync/FinderSyncExt
parent48624fe033235afaaf514969d1155eff3ad15085 (diff)
shell_i: Don't request statuses on UPDATE_VIEW
Now that the client is pushing all changes of state, we don't need to track the requested URLs anymore and risk that the way that we reseted that list could leave a few entries in Finder's cache outdated. We can remove the same code from other platforms in a later release, a bit earlier than a week before beta1.
Diffstat (limited to 'shell_integration/MacOSX/OwnCloudFinderSync/FinderSyncExt')
-rw-r--r--shell_integration/MacOSX/OwnCloudFinderSync/FinderSyncExt/FinderSync.m24
1 files changed, 0 insertions, 24 deletions
diff --git a/shell_integration/MacOSX/OwnCloudFinderSync/FinderSyncExt/FinderSync.m b/shell_integration/MacOSX/OwnCloudFinderSync/FinderSyncExt/FinderSync.m
index 689cf750b..6273b5032 100644
--- a/shell_integration/MacOSX/OwnCloudFinderSync/FinderSyncExt/FinderSync.m
+++ b/shell_integration/MacOSX/OwnCloudFinderSync/FinderSyncExt/FinderSync.m
@@ -59,7 +59,6 @@
_syncClientProxy = [[SyncClientProxy alloc] initWithDelegate:self serverName:serverName];
_registeredDirectories = [[NSMutableSet alloc] init];
- _requestedUrls = [[NSMutableSet alloc] init];
_shareMenuTitle = nil;
[_syncClientProxy start];
@@ -68,23 +67,8 @@
#pragma mark - Primary Finder Sync protocol methods
-- (void)endObservingDirectoryAtURL:(NSURL *)url
-{
- // The user is no longer seeing the container's contents.
- // At this point we know that the status of any file as a direct child of url.filePathURL
- // won't be displayed. Filter our _requestedUrls to get rid of them.
- NSString *observedDirectoryPath = [url.filePathURL path];
- [_requestedUrls filterUsingPredicate:[NSPredicate predicateWithBlock:^BOOL(id evaluatedObject, NSDictionary *bindings) {
- NSURL *requestedUrl = (NSURL *)evaluatedObject;
- NSString *parentDir = [[requestedUrl path] stringByDeletingLastPathComponent];
- return [parentDir isEqualToString:observedDirectoryPath];
- }]];
-}
-
- (void)requestBadgeIdentifierForURL:(NSURL *)url
{
- [_requestedUrls addObject:url.filePathURL];
-
BOOL isDir;
if ([[NSFileManager defaultManager] fileExistsAtPath:[url path] isDirectory: &isDir] == NO) {
NSLog(@"ERROR: Could not determine file type of %@", [url path]);
@@ -128,14 +112,6 @@
- (void)reFetchFileNameCacheForPath:(NSString*)path
{
- // This shouldn't be necessary, and will be a problem when we
- // filter values of _requestedUrls even though Finder might still
- // have an old status in its cache (and therefore won't re-request it)
- // but will do OK until we get the socket API to re-push the status of everything needed.
- [_requestedUrls enumerateObjectsUsingBlock: ^(id url, BOOL *stop) {
- if ([[url path] hasPrefix:path])
- [self requestBadgeIdentifierForURL: url];
- }];
}
- (void)registerPath:(NSString*)path