Skip to content

Commit

Permalink
Add storage for manually-entered tasks that can be retained by the vote
Browse files Browse the repository at this point in the history
counter, and not lost between Manage Votes window loads.
Added at the Tally level so that it's not reset by just changing partitioning.
  • Loading branch information
Kinematics committed Jul 28, 2015
1 parent 444ab9a commit 3e839c4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions TallyCore/Tally.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ public class Tally : INotifyPropertyChanged
IQuest lastTallyQuest = null;
List<HtmlDocument> loadedPages = null;

public HashSet<string> ManualTasks { get; } = new HashSet<string>(StringComparer.OrdinalIgnoreCase);

public Tally()
: this(null, null)
{
Expand Down Expand Up @@ -125,6 +127,7 @@ public async Task Run(IQuest quest, CancellationToken token)

TallyResults = string.Empty;
lastTallyQuest = quest;
ManualTasks.Clear();

var fa = await quest.GetForumAdapterAsync(token);

Expand Down

0 comments on commit 3e839c4

Please sign in to comment.