mirror of
https://github.com/nextcloud/desktop.git
synced 2024-10-25 13:55:47 +03:00
Improve folder encryption dialog info boxes
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
parent
19d5919b39
commit
01334e40f9
1 changed files with 5 additions and 4 deletions
|
@ -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)
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue