Skip to content

Commit

Permalink
Fixed local - remote file comparisons.
Browse files Browse the repository at this point in the history
  • Loading branch information
stricq committed Mar 16, 2016
1 parent c2de944 commit 57624f4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions UpkManager.Wpf/Controllers/FileListingController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -238,14 +238,14 @@ private async Task loadAllFiles() {

List<DomainUpkFile> matches = (from row1 in localFiles
join row2 in remoteFiles on row1.GameFilename.ToLowerInvariant() equals row2.GameFilename.ToLowerInvariant()
where row1.GameVersion == row2.GameVersion
where row1.FileSize == row2.FileSize
select row2).ToList();

if (matches.Any()) allFiles.AddRange(matches.OrderBy(f => f.Filename));

List<DomainUpkFile> changes = (from row1 in localFiles
join row2 in remoteFiles on row1.GameFilename.ToLowerInvariant() equals row2.GameFilename.ToLowerInvariant()
where row1.GameVersion != row2.GameVersion
where row1.FileSize != row2.FileSize
select row2).ToList();

if (changes.Any()) {
Expand Down

0 comments on commit 57624f4

Please sign in to comment.