From: Claudio Cambra Date: Fri, 9 Dec 2022 22:22:30 +0000 (+0100) Subject: Improve folder encryption dialog info boxes X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~12^2~11^2~70^2~2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=01334e40f99e5a9b289e53a877529db941ea8bdb;p=nextcloud-desktop.git Improve folder encryption dialog info boxes Signed-off-by: Claudio Cambra --- diff --git a/src/gui/socketapi/socketapi.cpp b/src/gui/socketapi/socketapi.cpp index 56fb934a8..10166399b 100644 --- a/src/gui/socketapi/socketapi.cpp +++ b/src/gui/socketapi/socketapi.cpp @@ -546,13 +546,14 @@ void SocketApi::processEncryptRequest(const QString &localFile) connect(job, &OCC::EncryptFolderJob::finished, this, [fileData, job](const int status) { if (status == OCC::EncryptFolderJob::Error) { const int ret = QMessageBox::critical(nullptr, - tr("Failed to encrypt folder at \"%1\"").arg(fileData.folderRelativePath), - tr("Server replied with error: %1").arg(job->errorString())); + tr("Failed to encrypt folder"), + tr("Could not encrypt the following folder: \"%1\". \n\n" + "Server replied with error: %2").arg(fileData.folderRelativePath, job->errorString())); Q_UNUSED(ret) } else { const int ret = QMessageBox::information(nullptr, - tr("Folder at \"%1\" encrypted successfully").arg(fileData.folderRelativePath), - {}); + tr("Folder encrypted successfully").arg(fileData.folderRelativePath), + tr("The following folder was encrypted successfully: \"%1\"").arg(fileData.folderRelativePath)); Q_UNUSED(ret) } });