Skip to content

Commit

Permalink
Merge branch 'staging' into refactor-docker-ci
Browse files Browse the repository at this point in the history
  • Loading branch information
Gauvino authored Sep 11, 2024
2 parents ea2894e + eb7793f commit 49ee194
Show file tree
Hide file tree
Showing 47 changed files with 4,058 additions and 3,955 deletions.
8 changes: 6 additions & 2 deletions OpenBullet2.Native/ViewModels/HitsViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,10 @@ public string SearchString
}
}

public IEnumerable<string> ConfigNames => new string[] { "All" }.Concat(
HitsCollection.GroupBy(h => h.ConfigName).Select(g => g.First().ConfigName));
public IEnumerable<string> ConfigNames => _firstConfigNamesOption.Concat(
HitsCollection.GroupBy(h => h.ConfigName)
.Select(g => g.First().ConfigName)
.Order(StringComparer.OrdinalIgnoreCase));

private string configFilter = "All";
public string ConfigFilter
Expand Down Expand Up @@ -76,6 +78,8 @@ public string TypeFilter
}
}

private static readonly string[] _firstConfigNamesOption = new[] { "All" };

public HitsViewModel()
{
obSettingsService = SP.GetService<OpenBulletSettingsService>();
Expand Down
Loading

0 comments on commit 49ee194

Please sign in to comment.