Auto-select first unselected puzzle. Helps Linux navigation

This commit is contained in:
2017-06-16 15:16:56 -05:00
parent 11029d87dd
commit 35543503e2
2 changed files with 26 additions and 19 deletions

View File

@@ -236,6 +236,8 @@ namespace EduNetworkBuilder
shown_name = pi.PuzzleName;
if (oursettings.ScoreList.Contains(str))
shown_name = "* " + shown_name;
else if (selected == "")
selected = shown_name; //Select the first unfinished puzzle
foreach (string tag in pi.PuzzleTags)
{
if (isChecked(tag))
@@ -253,6 +255,8 @@ namespace EduNetworkBuilder
string localFilter = ".*" + FilterString + ".*";
if (oursettings.ScoreList.Contains(str))
shown_name = "* " + shown_name;
else if (selected == "")
selected = shown_name; //Select the first unfinished puzzle
if (!added && pi.PuzzleName != null && Regex.IsMatch(pi.PuzzleName, localFilter, RegexOptions.IgnoreCase))
{
added = true;