Changeset 5204

Show
Ignore:
Timestamp:
01/26/08 12:40:13 (6 months ago)
Author:
morris
Message:

Reload files after upload after a short delay to give the server time to finish up

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • WiredClient/trunk/WCTransfers.m

    r5199 r5204  
    7373- (void)_startTransfer:(WCTransfer *)transfer; 
    7474- (void)_finishTransfer:(WCTransfer *)transfer; 
     75- (void)_reloadFiles:(NSDictionary *)dictionary; 
    7576 
    7677- (BOOL)_downloadFile:(WCFile *)file toFolder:(NSString *)destination preview:(BOOL)preview; 
     
    507508                                        NULL]; 
    508509                                 
    509                                 [[self connection] postNotificationName:WCFilesShouldReload 
    510                                                                                                  object:[self connection] 
    511                                                                                            userInfo:dictionary]; 
     510                                [self performSelector:@selector(_reloadFiles:) withObject:dictionary afterDelay:1.0]; 
    512511                        } 
    513512                } else { 
     
    537536        [file release]; 
    538537        [path release]; 
     538} 
     539 
     540 
     541 
     542- (void)_reloadFiles:(NSDictionary *)dictionary { 
     543        [[self connection] postNotificationName:WCFilesShouldReload 
     544                                                                         object:[self connection] 
     545                                                                   userInfo:dictionary]; 
    539546} 
    540547