Skip to content
This repository was archived by the owner on Jul 19, 2022. It is now read-only.

Commit

Permalink
Pause checker while saving unchecked combos
Browse files Browse the repository at this point in the history
  • Loading branch information
Laiteux committed Dec 27, 2020
1 parent b735f9d commit 0124ce1
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/Milky/Checker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -175,13 +175,17 @@ public int SaveUnchecked()
{
lock (Info.Locker)
{
Pause();

string outputPath = Path.Combine(_outputSettings.OutputDirectory ?? string.Empty, "Unchecked.txt");

var @unchecked = _combos.Except(Info.Checked);
List<Combo> @unchecked = _combos.Except(Info.Checked).ToList();

File.WriteAllLines(outputPath, @unchecked.Select(c => c.ToString()));

return @unchecked.Count();
Resume();

return @unchecked.Count;
}
}

Expand Down

0 comments on commit 0124ce1

Please sign in to comment.