mirror of
https://github.com/nextcloud/desktop.git
synced 2024-12-12 22:24:28 +03:00
[CSE] Save folder id and token for the lock
So we can unlock it later. - perhaps we should store this on the disk or something, to make it harder to lose.
This commit is contained in:
parent
70d562668c
commit
6745777ca3
2 changed files with 4 additions and 0 deletions
|
@ -278,6 +278,8 @@ void PropagateUploadFileCommon::slotFolderLockedSuccessfully(const QByteArray& f
|
|||
qDebug() << "Folder" << fileId << "Locked Successfully for Upload";
|
||||
// Should I use a mutex here?
|
||||
_currentLockingInProgress = true;
|
||||
_folderToken = token;
|
||||
_folderId = fileId;
|
||||
}
|
||||
|
||||
void PropagateUploadFileCommon::slotFolderLockedError(const QByteArray& fileId, int httpErrorCode)
|
||||
|
|
|
@ -291,6 +291,8 @@ private slots:
|
|||
private:
|
||||
QElapsedTimer _folderLockFirstTry;
|
||||
bool _currentLockingInProgress;
|
||||
QByteArray _folderToken;
|
||||
QByteArray _folderId;
|
||||
|
||||
protected:
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue