mirror of
https://github.com/nextcloud/desktop.git
synced 2025-10-26 11:17:43 +00:00
parent
df214cd6c1
commit
bb215ad095
@ -79,6 +79,16 @@ static MenuManager* sharedInstance = nil;
|
||||
return;
|
||||
}
|
||||
|
||||
for (int i = 0; i < files.count; i++) {
|
||||
NSString *fn = [files objectAtIndex:i];
|
||||
BOOL isDir = false;
|
||||
if ([[NSFileManager defaultManager] fileExistsAtPath:fn isDirectory:&isDir]) {
|
||||
if (![requestManager isRegisteredPath:fn isDirectory:isDir]) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
NSMutableArray* menuItemsArray = [[[NSMutableArray alloc] init] autorelease];
|
||||
NSMutableDictionary *firstEntry = [[[NSMutableDictionary alloc] init] autorelease];
|
||||
[firstEntry setValue:[NSNumber numberWithBool:YES] forKey:@"enabled"];
|
||||
|
||||
@ -86,7 +86,7 @@ static RequestManager* sharedInstance = nil;
|
||||
BOOL registered = NO;
|
||||
|
||||
NSString* checkPath = [NSString stringWithString:path];
|
||||
if (isDir) {
|
||||
if (isDir && ![checkPath hasSuffix:@"/"]) {
|
||||
// append a slash
|
||||
checkPath = [path stringByAppendingString:@"/"];
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user