|
@@ -211,10 +211,18 @@ extension tableMetadata {
|
|
|
return classFile == NKCommon.TypeClassFile.document.rawValue && editors.contains(NCGlobal.shared.editorText) && ((editors.contains(NCGlobal.shared.editorOnlyoffice) || isRichDocument))
|
|
|
}
|
|
|
|
|
|
- var isDownloadUpload: Bool {
|
|
|
+ var isWaitingTransfer: Bool {
|
|
|
+ status == NCGlobal.shared.metadataStatusWaitDownload || status == NCGlobal.shared.metadataStatusWaitUpload || status == NCGlobal.shared.metadataStatusUploadError
|
|
|
+ }
|
|
|
+
|
|
|
+ var isInTransfer: Bool {
|
|
|
status == NCGlobal.shared.metadataStatusInDownload || status == NCGlobal.shared.metadataStatusDownloading || status == NCGlobal.shared.metadataStatusInUpload || status == NCGlobal.shared.metadataStatusUploading
|
|
|
}
|
|
|
|
|
|
+ func isTransferInForeground() -> Bool {
|
|
|
+ return (status > 0 && (chunk || e2eEncrypted))
|
|
|
+ }
|
|
|
+
|
|
|
var isDownload: Bool {
|
|
|
status == NCGlobal.shared.metadataStatusInDownload || status == NCGlobal.shared.metadataStatusDownloading
|
|
|
}
|
|
@@ -246,10 +254,6 @@ extension tableMetadata {
|
|
|
return false
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
- func isTransferInForeground() -> Bool {
|
|
|
- return (status > 0 && (chunk || e2eEncrypted))
|
|
|
- }
|
|
|
}
|
|
|
|
|
|
extension NCManageDatabase {
|