|
@@ -362,27 +362,24 @@
|
|
|
if(_isfirstRefreshType){
|
|
|
BOOL isAllUploadingType = NO;
|
|
|
|
|
|
- if([nasMixUploadManager shareManager].isUploadIngType){
|
|
|
- isAllUploadingType = YES;
|
|
|
- }
|
|
|
-
|
|
|
-// NSArray *copyArr = @[];
|
|
|
-// if(_uploadingArr){
|
|
|
-// copyArr = [NSArray arrayWithArray:_uploadingArr];
|
|
|
-// }
|
|
|
-//
|
|
|
-// HLog(@"上传刷新头部按钮 开始遍历")
|
|
|
-// for (uploadFileDataModel*model in copyArr) {
|
|
|
-// if(model.curUploadStateType != uploadStateUploading){
|
|
|
-// isAllUploadingType = YES;
|
|
|
-// break;
|
|
|
-// }
|
|
|
+// if([nasMixUploadManager shareManager].isUploadIngType){
|
|
|
+// isAllUploadingType = YES;
|
|
|
// }
|
|
|
- HLog(@"上传刷新头部按钮 结束遍历")
|
|
|
|
|
|
- _uploadingHeadView.rightButton.selected = isAllUploadingType;
|
|
|
+ HLog(@"上传刷新头部按钮 开始遍历")
|
|
|
+ @synchronized (self) {
|
|
|
+ for (uploadFileDataModel*model in _uploadingArr) {
|
|
|
+ if(model.curUploadStateType != uploadStateUploading){
|
|
|
+ isAllUploadingType = YES;
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ _uploadingHeadView.rightButton.selected = isAllUploadingType;
|
|
|
+
|
|
|
+ _isfirstRefreshType = NO;
|
|
|
+ }
|
|
|
|
|
|
- _isfirstRefreshType = NO;
|
|
|
+ HLog(@"上传刷新头部按钮 结束遍历")
|
|
|
}
|
|
|
}
|
|
|
}
|