mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-23 05:25:50 +03:00
Acquire upload/download progress in domain sync status
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
parent
6fa969d8f2
commit
e314fd05e7
1 changed files with 7 additions and 0 deletions
|
@ -36,7 +36,11 @@ public:
|
|||
|
||||
if (_manager == nil) {
|
||||
qCWarning(lcMacFileProviderDomainSyncStatus) << "Could not get manager for domain" << domainIdentifier;
|
||||
return;
|
||||
}
|
||||
|
||||
_downloadProgress = [_manager globalProgressForKind:NSProgressFileOperationKindDownloading];
|
||||
_uploadProgress = [_manager globalProgressForKind:NSProgressFileOperationKindUploading];
|
||||
}
|
||||
|
||||
~MacImplementation() = default;
|
||||
|
@ -44,6 +48,9 @@ public:
|
|||
private:
|
||||
NSFileProviderDomain *_domain;
|
||||
NSFileProviderManager *_manager;
|
||||
NSProgress *_downloadProgress;
|
||||
NSProgress *_uploadProgress;
|
||||
QTimer _timer;
|
||||
FileProviderDomainSyncStatus *q;
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue