|
@@ -283,19 +283,19 @@
|
|
|
|
|
|
[_folderListArr addObjectsFromArray:model.data];
|
|
|
|
|
|
-// NSString * backupsDefaultPath = [HWDataManager getStringWithKey:Const_photo_backups_default_path];
|
|
|
-//
|
|
|
-// BOOL needAddHadDefaultPath = YES;
|
|
|
-//
|
|
|
-// for (int i=0; i<_folderListArr.count; i++) {
|
|
|
-// NSString * curPathStr = _folderListArr[i];
|
|
|
-// if([curPathStr isEqualToString:backupsDefaultPath]){
|
|
|
-// needAddHadDefaultPath = NO;
|
|
|
-// _selectIndex = i;
|
|
|
-// break;
|
|
|
-// }
|
|
|
-// }
|
|
|
-//
|
|
|
+ NSString * backupsDefaultPath = [HWDataManager getStringWithKey:Const_photo_backups_default_path];
|
|
|
+
|
|
|
+ BOOL needAddHadDefaultPath = YES;
|
|
|
+
|
|
|
+ for (int i=0; i<_folderListArr.count; i++) {
|
|
|
+ NSString * curPathStr = _folderListArr[i];
|
|
|
+ if([curPathStr isEqualToString:backupsDefaultPath]){
|
|
|
+ needAddHadDefaultPath = NO;
|
|
|
+ _selectIndex = i;
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
// if(needAddHadDefaultPath){
|
|
|
// [_folderListArr insertObject:backupsDefaultPath atIndex:0];
|
|
|
// _selectIndex = 0;
|