|
@@ -272,6 +272,11 @@
|
|
|
[self reloadForm];
|
|
|
}
|
|
|
|
|
|
+ if ([rowDescriptor.tag isEqualToString:@"removePhotoCameraRoll"]) {
|
|
|
+
|
|
|
+ [[NCManageDatabase sharedInstance] setAccountAutoUploadProperty:@"autoUploadDeleteAssetLocalIdentifier" state:[[rowDescriptor.value valueData] boolValue]];
|
|
|
+ }
|
|
|
+
|
|
|
if ([rowDescriptor.tag isEqualToString:@"autoUploadBackground"]) {
|
|
|
|
|
|
if ([[rowDescriptor.value valueData] boolValue] == YES) {
|
|
@@ -371,6 +376,8 @@
|
|
|
XLFormRowDescriptor *rowAutoUploadVideo = [self.form formRowWithTag:@"autoUploadVideo"];
|
|
|
XLFormRowDescriptor *rowAutoUploadWWAnVideo = [self.form formRowWithTag:@"autoUploadWWAnVideo"];
|
|
|
|
|
|
+ XLFormRowDescriptor *rowRemovePhotoCameraRoll = [self.form formRowWithTag:@"removePhotoCameraRoll"];
|
|
|
+
|
|
|
XLFormRowDescriptor *rowAutoUploadBackground = [self.form formRowWithTag:@"autoUploadBackground"];
|
|
|
|
|
|
XLFormRowDescriptor *rowAutoUploadFull = [self.form formRowWithTag:@"autoUploadFull"];
|
|
@@ -378,7 +385,7 @@
|
|
|
XLFormRowDescriptor *rowAutoUploadCreateSubfolder = [self.form formRowWithTag:@"autoUploadCreateSubfolder"];
|
|
|
|
|
|
XLFormRowDescriptor *rowAutoUploadFileName = [self.form formRowWithTag:@"autoUploadFileName"];
|
|
|
-
|
|
|
+
|
|
|
// - STATUS ---------------------
|
|
|
tableAccount *tableAccount = [[NCManageDatabase sharedInstance] getAccountActive];
|
|
|
|
|
@@ -397,6 +404,9 @@
|
|
|
if (tableAccount.autoUploadWWAnVideo)
|
|
|
[rowAutoUploadWWAnVideo setValue:@1]; else [rowAutoUploadWWAnVideo setValue:@0];
|
|
|
|
|
|
+ if (tableAccount.autoUploadDeleteAssetLocalIdentifier)
|
|
|
+ [rowRemovePhotoCameraRoll setValue:@1]; else [rowRemovePhotoCameraRoll setValue:@0];
|
|
|
+
|
|
|
if (tableAccount.autoUploadBackground)
|
|
|
[rowAutoUploadBackground setValue:@1]; else [rowAutoUploadBackground setValue:@0];
|
|
|
|
|
@@ -414,6 +424,8 @@
|
|
|
rowAutoUploadVideo.hidden = [NSString stringWithFormat:@"$%@==0", @"autoUpload"];
|
|
|
rowAutoUploadWWAnVideo.hidden = [NSString stringWithFormat:@"$%@==0", @"autoUpload"];
|
|
|
|
|
|
+ rowRemovePhotoCameraRoll.hidden = [NSString stringWithFormat:@"$%@==0", @"autoUpload"];
|
|
|
+
|
|
|
rowAutoUploadBackground.hidden = [NSString stringWithFormat:@"$%@==0", @"autoUpload"];
|
|
|
|
|
|
rowAutoUploadFull.hidden = [NSString stringWithFormat:@"$%@==0", @"autoUpload"];
|
|
@@ -421,7 +433,7 @@
|
|
|
rowAutoUploadCreateSubfolder.hidden = [NSString stringWithFormat:@"$%@==0", @"autoUpload"];
|
|
|
|
|
|
rowAutoUploadFileName.hidden = [NSString stringWithFormat:@"$%@==0", @"autoUpload"];
|
|
|
-
|
|
|
+
|
|
|
// -----------------------------------------------------------------------------------
|
|
|
|
|
|
[self.tableView reloadData];
|
|
@@ -445,18 +457,22 @@
|
|
|
else sectionName = @"";
|
|
|
break;
|
|
|
case 4:
|
|
|
- if (tableAccount.autoUpload) sectionName = NSLocalizedString(@"_autoupload_description_background_", nil);
|
|
|
+ if (tableAccount.autoUpload) sectionName = NSLocalizedString(@"_remove_photo_CameraRoll_desc_", nil);
|
|
|
else sectionName = @"";
|
|
|
break;
|
|
|
case 5:
|
|
|
- if (tableAccount.autoUpload) sectionName = NSLocalizedString(@"_autoupload_fullphotos_footer_", nil);
|
|
|
+ if (tableAccount.autoUpload) sectionName = NSLocalizedString(@"_autoupload_description_background_", nil);
|
|
|
else sectionName = @"";
|
|
|
break;
|
|
|
case 6:
|
|
|
- if (tableAccount.autoUpload) sectionName = NSLocalizedString(@"_autoupload_create_subfolder_footer_", nil);
|
|
|
+ if (tableAccount.autoUpload) sectionName = NSLocalizedString(@"_autoupload_fullphotos_footer_", nil);
|
|
|
else sectionName = @"";
|
|
|
break;
|
|
|
case 7:
|
|
|
+ if (tableAccount.autoUpload) sectionName = NSLocalizedString(@"_autoupload_create_subfolder_footer_", nil);
|
|
|
+ else sectionName = @"";
|
|
|
+ break;
|
|
|
+ case 8:
|
|
|
if (tableAccount.autoUpload) sectionName = NSLocalizedString(@"_autoupload_filenamemask_footer_", nil);
|
|
|
else sectionName = @"";
|
|
|
break;
|