소스 검색

1.下载选择后切换磁盘 添加一次点击取消全选

huangxiaodong 1 년 전
부모
커밋
20f69145dc
1개의 변경된 파일9개의 추가작업 그리고 0개의 파일을 삭제
  1. 9 0
      创维盒子/双子星云手机/Class/Set/uploadFile/downLoadFile/downLoadPreviewViewController.m

+ 9 - 0
创维盒子/双子星云手机/Class/Set/uploadFile/downLoadFile/downLoadPreviewViewController.m

@@ -239,6 +239,15 @@
 #pragma mark 选中磁盘
 - (void)didCheckDiskFunByPath:(NSString*)pathStr
 {
+    if(self.defaultDiskPath
+       && self.defaultDiskPath.length>0
+       && ![self.defaultDiskPath isEqualToString:pathStr]){
+        //切换硬盘了 取消全选
+        
+        _rightButton.selected = YES;
+        [self didClickSelectAllButton:_rightButton];
+    }
+    
     self.defaultDiskPath = pathStr;
     //[self searchFileListFun];
     [self setTitleAfterGetdiskFun];