Skip to content

Commit

Permalink
Display last sync date in tray menu also when files where ignore
Browse files Browse the repository at this point in the history
Fixes: #8953
  • Loading branch information
TheOneRing committed Feb 24, 2023
1 parent 6f678fb commit 389299d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions changelog/unreleased/8953
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Bugfix: Display sync date in system tray context menu when files where ignored

https://github.com/owncloud/client/issues/8953
4 changes: 3 additions & 1 deletion src/gui/owncloudgui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 389299d

Please sign in to comment.