Skip to content

Commit 5229926

Browse files
committed
Optimize Sync: no need to update the status of our files since this is done immediately after by the Editor
Part of #28 Optimization: many operations leads to double call to UpdateStatus()
1 parent ba671d3 commit 5229926

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

Source/PlasticSourceControl/Private/PlasticSourceControlOperations.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -705,10 +705,7 @@ bool FPlasticSyncWorker::Execute(FPlasticSourceControlCommand& InCommand)
705705
ProjectDirs.Add(FPaths::ConvertRelativePathToFull(FPaths::ProjectConfigDir()));
706706
PlasticSourceControlUtils::RunUpdateStatus(ProjectDirs, InCommand.Concurrency, InCommand.ErrorMessages, States, InCommand.ChangesetNumber, InCommand.BranchName);
707707
}
708-
else
709-
{
710-
PlasticSourceControlUtils::RunUpdateStatus(InCommand.Files, InCommand.Concurrency, InCommand.ErrorMessages, States, InCommand.ChangesetNumber, InCommand.BranchName);
711-
}
708+
// else: optim, no need to update the status of our files since this is done immediately after by the Editor
712709
}
713710

714711
return InCommand.bCommandSuccessful;

0 commit comments

Comments
 (0)