diff --git a/changelog/unreleased/8953 b/changelog/unreleased/8953 new file mode 100644 index 00000000000..33f4c505c17 --- /dev/null +++ b/changelog/unreleased/8953 @@ -0,0 +1,3 @@ +Bugfix: Display sync date in system tray context menu when files where ignored + +https://github.com/owncloud/client/issues/8953 diff --git a/src/gui/owncloudgui.cpp b/src/gui/owncloudgui.cpp index 10fc2d1b1c2..18495cf5851 100644 --- a/src/gui/owncloudgui.cpp +++ b/src/gui/owncloudgui.cpp @@ -344,10 +344,12 @@ void ownCloudGui::slotComputeOverallSyncStatus() case SyncResult::Problem: if (trayOverallStatusResult.overallStatus().hasUnresolvedConflicts()) { setStatusText(tr("Unresolved %1 conflicts").arg(QString::number(trayOverallStatusResult.overallStatus().numNewConflictItems()))); + break; } else if (trayOverallStatusResult.overallStatus().numBlacklistErrors() != 0) { setStatusText(tr("Ignored errors %1").arg(QString::number(trayOverallStatusResult.overallStatus().numBlacklistErrors()))); + break; } - break; + [[fallthrough]]; case SyncResult::Success: { QString lastSyncDoneString; // display only the time in case the last sync was today