Get ClientSideEncryption to notify when folder info fetch is done
authorKevin Ottens <kevin.ottens@nextcloud.com>
Wed, 17 Jun 2020 13:06:05 +0000 (15:06 +0200)
committerKevin Ottens <kevin.ottens@nextcloud.com>
Tue, 30 Jun 2020 09:29:08 +0000 (11:29 +0200)
Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
src/libsync/clientsideencryption.cpp
src/libsync/clientsideencryption.h

index bacd887c37c762d1e5d57216df187e67604a6f2f..f1e690efb10bda3f6434c7a3be332a3ad79c4faf 100644 (file)
@@ -1228,12 +1228,14 @@ void ClientSideEncryption::folderEncryptedStatusFetched(const QMap<QString, bool
     _refreshingEncryptionStatus = false;
     _folder2encryptedStatus = result;
     qCDebug(lcCse) << "Retrieved correctly the encrypted status of the folders." << result;
+    emit folderEncryptedStatusFetchDone();
 }
 
 void ClientSideEncryption::folderEncryptedStatusError(int error)
 {
     _refreshingEncryptionStatus = false;
     qCDebug(lcCse) << "Failed to retrieve the status of the folders." << error;
+    emit folderEncryptedStatusFetchDone();
 }
 
 FolderMetadata::FolderMetadata(AccountPtr account, const QByteArray& metadata, int statusCode) : _account(account)
index 0c92ffa1c2e47b487c1bb39929baaf00a99cc5e2..7d9ce5fce51d9e0a1fd66b5388e0e37fb129c7e3 100644 (file)
@@ -105,6 +105,7 @@ signals:
     void initializationFinished();
     void mnemonicGenerated(const QString& mnemonic);
     void showMnemonic(const QString& mnemonic);
+    void folderEncryptedStatusFetchDone();
 
 private:
     void getPrivateKeyFromServer();