diff options
author | marinofaggiana <marino@marinofaggiana.com> | 2021-01-15 16:47:23 +0300 |
---|---|---|
committer | marinofaggiana <marino@marinofaggiana.com> | 2021-01-15 16:47:23 +0300 |
commit | 5078db377817e07734908fe28bafa55519c1bbb6 (patch) | |
tree | 5a60f1897de9646a38257b55500df65ca13469ac /iOSClient/Main | |
parent | 0d4465454dbeb66b8bbf921fcc92d75d4618694f (diff) |
improvements
Diffstat (limited to 'iOSClient/Main')
-rw-r--r-- | iOSClient/Main/Colleaction Common/NCCollectionCommon.swift | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/iOSClient/Main/Colleaction Common/NCCollectionCommon.swift b/iOSClient/Main/Colleaction Common/NCCollectionCommon.swift index 1e943c22d..3782e7546 100644 --- a/iOSClient/Main/Colleaction Common/NCCollectionCommon.swift +++ b/iOSClient/Main/Colleaction Common/NCCollectionCommon.swift @@ -245,10 +245,10 @@ class NCCollectionCommon: NSObject, NCSelectDelegate { var titleDeleteConfirmFile = NSLocalizedString("_delete_file_", comment: "") if metadata.directory { titleDeleteConfirmFile = NSLocalizedString("_delete_folder_", comment: "") } - var discoverabilityTitleSave: String? + var titleSave: String = NSLocalizedString("_save_selected_files_", comment: "") let metadataMOV = NCManageDatabase.shared.isLivePhoto(metadata: metadata) if metadataMOV != nil { - discoverabilityTitleSave = NSLocalizedString("_livephoto_save_", comment: "") + titleSave = NSLocalizedString("_livephoto_save_", comment: "") } let copy = UIAction(title: NSLocalizedString("_copy_file_", comment: ""), image: UIImage(systemName: "doc.on.doc") ) { action in @@ -263,7 +263,7 @@ class NCCollectionCommon: NSObject, NCSelectDelegate { NCNetworkingNotificationCenter.shared.openShare(ViewController: viewController, metadata: metadata, indexPage: 0) } - let save = UIAction(title: NSLocalizedString("_save_selected_files_", comment: ""), image: UIImage(systemName: "square.and.arrow.down"), discoverabilityTitle: discoverabilityTitleSave) { action in + let save = UIAction(title: titleSave, image: UIImage(systemName: "square.and.arrow.down")) { action in if metadataMOV != nil { if !CCUtility.fileProviderStorageExists(metadata.ocId, fileNameView: metadata.fileNameView) { |