diff options
author | Klaas Freitag <freitag@owncloud.com> | 2021-12-19 01:01:35 +0300 |
---|---|---|
committer | Hannah von Reth <vonreth@kde.org> | 2022-01-10 14:27:30 +0300 |
commit | df52729957e7d8d77dbaf32849b83822cc4c261b (patch) | |
tree | 327816b607e2cd9df800a5587448cdeffa569282 /src/gui/folderstatusmodel.cpp | |
parent | ae011a126a54f5ed49b53c68c89fe53a7730fc39 (diff) |
Fix the startup period at beginning, make it short again.
Fixes #9253
Diffstat (limited to 'src/gui/folderstatusmodel.cpp')
-rw-r--r-- | src/gui/folderstatusmodel.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/gui/folderstatusmodel.cpp b/src/gui/folderstatusmodel.cpp index f3a2630e6..37dad168d 100644 --- a/src/gui/folderstatusmodel.cpp +++ b/src/gui/folderstatusmodel.cpp @@ -1071,14 +1071,10 @@ void FolderStatusModel::slotFolderSyncStateChange(Folder *f) if (other != f && other->isSyncRunning()) pos += 1; } - QString message; - if (pos <= 0) { - message = tr("Waiting..."); - } else { - message = tr("Waiting for %n other folder(s)...", "", pos); + if (pos > 0) { + pi._overallSyncString = tr("Waiting for %n other folder(s)...", "", pos); } pi = SubFolderInfo::Progress(); - pi._overallSyncString = message; } else if (state == SyncResult::SyncPrepare) { pi = SubFolderInfo::Progress(); pi._overallSyncString = tr("Preparing to sync..."); |