Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Aragas committed Oct 5, 2024
1 parent 2c18da3 commit 4ea870e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ protected internal bool TryOrderByLoadOrderTW(IEnumerable<string> loadOrder, Fun
.Select(x => moduleViewModelLookup[x.Id])
.ToList();

var existingLoadOrderValidationIssues = LoadOrderChecker.IsLoadOrderCorrect(existingOrderedModules).ToList();
var existingLoadOrderValidationIssues = LoadOrderChecker.IsLoadOrderCorrect(existingOrderedModules.Where(x => moduleViewModelLookup[x.Id].IsSelected).ToList()).ToList();
if (!overwriteWhenFailure && existingLoadOrderValidationIssues.Count != 0)
{
issues = existingLoadOrderValidationIssues;
Expand All @@ -99,7 +99,7 @@ protected internal bool TryOrderByLoadOrderTW(IEnumerable<string> loadOrder, Fun
SortHelper.ToggleModuleSelection(existingOrderedViewModels, moduleViewModelLookup, moduleVM);
}

var providedLoadOrderValidationIssues = LoadOrderChecker.IsLoadOrderCorrect(originalOrderedModules).ToList();
var providedLoadOrderValidationIssues = LoadOrderChecker.IsLoadOrderCorrect(originalOrderedModules.Where(x => moduleViewModelLookup[x.Id].IsSelected).ToList()).ToList();
issues = providedLoadOrderValidationIssues.Count > 0 ? providedLoadOrderValidationIssues : null;
orderedModules = existingOrderedViewModels;
var idx = 0;
Expand Down

0 comments on commit 4ea870e

Please sign in to comment.