|
@@ -73,12 +73,13 @@
|
|
|
[row.cellConfig setObject:[UIFont systemFontOfSize:15.0]forKey:@"textLabel.font"];
|
|
|
[section addFormRow:row];
|
|
|
|
|
|
-#if TARGET_OS_SIMULATOR
|
|
|
- row = [XLFormRowDescriptor formRowDescriptorWithTag:@"hideDownload" rowType:XLFormRowDescriptorTypeBooleanSwitch title:NSLocalizedString(@"_share_link_hide_download_", nil)];
|
|
|
- [row.cellConfig setObject:[UIFont systemFontOfSize:15.0]forKey:@"textLabel.font"];
|
|
|
- [section addFormRow:row];
|
|
|
-#endif
|
|
|
-
|
|
|
+ tableCapabilities *capabilities = [[NCManageDatabase sharedInstance] getCapabilites];
|
|
|
+ if (capabilities != nil && capabilities.versionMajor >= k_nextcloud_version_15_0) {
|
|
|
+ row = [XLFormRowDescriptor formRowDescriptorWithTag:@"hideDownload" rowType:XLFormRowDescriptorTypeBooleanSwitch title:NSLocalizedString(@"_share_link_hide_download_", nil)];
|
|
|
+ [row.cellConfig setObject:[UIFont systemFontOfSize:15.0]forKey:@"textLabel.font"];
|
|
|
+ [section addFormRow:row];
|
|
|
+ }
|
|
|
+
|
|
|
// Expiration date
|
|
|
|
|
|
section = [XLFormSectionDescriptor formSection];
|