From c6da2f6fd27cda5e072f1c6abfc2536ad34651c2 Mon Sep 17 00:00:00 2001 From: Camila Ayres Date: Wed, 10 Apr 2024 16:36:50 +0200 Subject: [PATCH] Improve sync status text. Signed-off-by: Camila Ayres --- src/gui/folderstatusmodel.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/gui/folderstatusmodel.cpp b/src/gui/folderstatusmodel.cpp index e21644aecd8f7..07d01d433588d 100644 --- a/src/gui/folderstatusmodel.cpp +++ b/src/gui/folderstatusmodel.cpp @@ -1176,7 +1176,7 @@ void FolderStatusModel::slotFolderSyncStateChange(Folder *folder) } auto &pi = _folders[folderIndex]._progress; - + const auto shortFolderPath = folder->shortGuiRemotePathOrAppName(); const auto state = folder->syncResult().status(); if (!folder->canSync() || state == SyncResult::Problem || state == SyncResult::Success || state == SyncResult::Error) { // Reset progress info. @@ -1188,12 +1188,13 @@ void FolderStatusModel::slotFolderSyncStateChange(Folder *folder) if (other != folder && other->isSyncRunning()) pos += 1; } - const auto message = pos <= 0 ? tr("Waiting …") : tr("Waiting for %n other folder(s) …", "", pos); + const auto message = pos <= 0 ? tr("Processing changes in folder %1 …").arg(shortFolderPath) + : tr("Processing changes in %n folder(s) …", "", pos); pi = SubFolderInfo::Progress(); pi._overallSyncString = message; } else if (state == SyncResult::SyncPrepare) { pi = SubFolderInfo::Progress(); - pi._overallSyncString = tr("Preparing to sync …"); + pi._overallSyncString = tr("Preparing to sync folder %1 …").arg(shortFolderPath); } // update the icon etc. now