Skip to content

Commit

Permalink
Only show synced items for local changes, except new items.
Browse files Browse the repository at this point in the history
Signed-off-by: alex-z <blackslayer4@gmail.com>
  • Loading branch information
allexzander committed Sep 12, 2023
1 parent ea12f90 commit 2d8c68d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/gui/tray/usermodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -756,6 +756,11 @@ bool User::isUnsolvableConflict(const SyncFileItemPtr &item) const

void User::processCompletedSyncItem(const Folder *folder, const SyncFileItemPtr &item)
{
if (item->_direction == SyncFileItem::Down && item->_instruction == CSYNC_INSTRUCTION_SYNC) {
qCDebug(lcActivity) << "Skipping activities about changes coming from server.";
return;
}

const auto fileActionFromInstruction = [](const int instruction) {
if (instruction == CSYNC_INSTRUCTION_REMOVE) {
return QStringLiteral("file_deleted");
Expand Down

0 comments on commit 2d8c68d

Please sign in to comment.