mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-11-11 04:23:29 -08:00
Merge d0cd13fce7 into 6a8835f136
This commit is contained in:
commit
b182d4f6f1
9 changed files with 375 additions and 57 deletions
|
|
@ -593,13 +593,19 @@ void TabDeckStorage::renderSyncStatus()
|
|||
case SyncStatusType::Failed:
|
||||
syncStatusLabel->setText(tr("Sync failed: %1").arg(syncStatusDetail));
|
||||
break;
|
||||
case SyncStatusType::Finished:
|
||||
syncStatusLabel->setText(tr("Sync complete: %1 uploaded, %2 downloaded, %3 unchanged, %4 skipped.")
|
||||
.arg(lastSyncSummary.uploaded)
|
||||
.arg(lastSyncSummary.downloaded)
|
||||
.arg(lastSyncSummary.unchanged)
|
||||
.arg(lastSyncSummary.skipped));
|
||||
case SyncStatusType::Finished: {
|
||||
QString text = tr("Sync complete: %1 uploaded, %2 downloaded, %3 removed, %4 unchanged, %5 skipped.")
|
||||
.arg(lastSyncSummary.uploaded)
|
||||
.arg(lastSyncSummary.downloaded)
|
||||
.arg(lastSyncSummary.removed)
|
||||
.arg(lastSyncSummary.unchanged)
|
||||
.arg(lastSyncSummary.skipped);
|
||||
if (!lastSyncSummary.note.isEmpty()) {
|
||||
text += QStringLiteral("\n") + lastSyncSummary.note;
|
||||
}
|
||||
syncStatusLabel->setText(text);
|
||||
break;
|
||||
}
|
||||
case SyncStatusType::Idle:
|
||||
syncStatusLabel->setText(tr("Not synced yet"));
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue