Skip to content

Commit d7ef7cb

Browse files
committed
fix(encryption): allow encrypting a new folder if it was synced
if the folder has a fileid, it means that it was created on server most probably we can encrypt it with success previous code was skiping encryption if some ignored files have been reported (even if it was unrelated to the folder we want to encrypt) Signed-off-by: Matthieu Gallien <[email protected]>
1 parent 0701a5f commit d7ef7cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/gui/accountsettings.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,7 @@ void AccountSettings::doExpand()
394394

395395
bool AccountSettings::canEncryptOrDecrypt(const FolderStatusModel::SubFolderInfo *info)
396396
{
397-
if (const auto folderSyncStatus = info->_folder->syncResult().status(); folderSyncStatus != SyncResult::Status::Success) {
397+
if (const auto folderSyncStatus = info->_folder->syncResult().status(); info->_fileId.isEmpty()) {
398398
auto message = tr("Please wait for the folder to sync before trying to encrypt it.");
399399
if (folderSyncStatus == SyncResult::Status::Problem) {
400400
message = tr("The folder has a minor sync problem. Encryption of this folder will be possible once it has synced successfully");

0 commit comments

Comments
 (0)