mirror of
https://github.com/nextcloud/desktop.git
synced 2025-10-26 11:17:43 +00:00
fix(quota): show personal files instead of empty string when error message is about root folder.
Signed-off-by: Camila Ayres <hello@camilasan.com>
This commit is contained in:
parent
3c8eb21a95
commit
d0ea889f98
@ -1164,9 +1164,15 @@ void ProcessDirectoryJob::processFileAnalyzeLocalInfo(
|
||||
|
||||
if (const auto folderQuota = folderQuotaAvailable(item);item->_size > folderQuota && folderQuota > -1) {
|
||||
item->_instruction = CSYNC_INSTRUCTION_ERROR;
|
||||
item->_errorString = tr("Upload of %1 exceeds the %2 of space left in %3 folder.").arg(Utility::octetsToString(item->_size),
|
||||
Utility::octetsToString(folderQuota),
|
||||
_currentFolder._server);
|
||||
if (_currentFolder._server.isEmpty()) {
|
||||
item->_errorString = tr("Upload of %1 exceeds %2 of space left in personal files.").arg(Utility::octetsToString(item->_size),
|
||||
Utility::octetsToString(folderQuota));
|
||||
} else {
|
||||
item->_errorString = tr("Upload of %1 exceeds %2 of space left in folder %3.").arg(Utility::octetsToString(item->_size),
|
||||
Utility::octetsToString(folderQuota),
|
||||
_currentFolder._server);
|
||||
}
|
||||
|
||||
item->_status = SyncFileItem::Status::NormalError;
|
||||
_discoveryData->_anotherSyncNeeded = true;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user