diff --git a/Send/Controllers/UploadViewController.m b/Send/Controllers/UploadViewController.m index 9229c23..0e6515e 100644 --- a/Send/Controllers/UploadViewController.m +++ b/Send/Controllers/UploadViewController.m @@ -7,6 +7,8 @@ #import +#import "../DockProgress/DockProgress.h" + @implementation UploadViewController { Send *send; File *file; @@ -86,8 +88,13 @@ - (void)sendUploadStartedWithSize:(NSUInteger)size { - (void)sendUploadProgressWithTotalBytesUploaded:(NSUInteger)bytes { // Update progress dispatch_async(dispatch_get_main_queue(), ^{ + double percent = bytes / [[self progressIndicator] maxValue]; + + [DockProgress setProgress:percent]; + [[self progressIndicator] setDoubleValue:bytes]; }); + } - (void)sendUploadCompleted {