Skip to content

Commit

Permalink
fix: duplicated arrays in settings and removed ban from MultiLoad64 d…
Browse files Browse the repository at this point in the history
…irectory
  • Loading branch information
MetalHexx committed May 1, 2024
1 parent d4c677f commit 7962d74
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ public SettingsService(ILoggingService log)

public TeensySettings GetSettings()
{
TeensySettings? settings = null;
var settings = _settings?.Value;

if (settings is not null) return settings;

if (File.Exists(_settingsFilePath))
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ public record TeensySettings
public bool SaveMusicCacheEnabled { get; set; } = true;
public bool NavToDirOnLaunch { get; set; } = true;
public bool FirstTimeSetup { get; set; } = true;
public List<string> BannedDirectories = ["MUSICIANS/S/Szachista", "System Volume Information", "FOUND.000", "integration-test-files", "integration-tests", "AlternativeFormats", "Dumps", "Docs", "MultiLoad64"];
public List<string> BannedFiles = ["Revolutionary_Etude_part_1.sid", "Revolutionary_Etude_part_2.sid", "Super_Trouper.sid"];
public List<string> BannedDirectories = [];
public List<string> BannedFiles = [];
public SearchWeights SearchWeights { get; set; } = new();
public List<string> SearchStopWords = ["a", "an", "and", "are", "as", "at", "be", "but", "by", "for", "if", "in", "is", "it", "no", "not", "of", "on", "or", "that", "the", "to", "was", "with"];
public List<string> SearchStopWords = [];

public TeensySettings()
{
Expand All @@ -48,6 +48,10 @@ public TeensySettings()

public void InitializeDefaults()
{
BannedDirectories = ["MUSICIANS/S/Szachista", "System Volume Information", "FOUND.000", "integration-test-files", "integration-tests", "AlternativeFormats", "Dumps", "Docs"];
BannedFiles = ["Revolutionary_Etude_part_1.sid", "Revolutionary_Etude_part_2.sid", "Super_Trouper.sid"];
SearchStopWords = ["a", "an", "and", "are", "as", "at", "be", "but", "by", "for", "if", "in", "is", "it", "no", "not", "of", "on", "or", "that", "the", "to", "was", "with"];

FileFilters.AddRange(new List<TeensyFilter>
{
new TeensyFilter
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<UseWPF>true</UseWPF>
<AssemblyVersion>1.0.0.0</AssemblyVersion>
<FileVersion>1.0.0.0</FileVersion>
<Version>1.0.0-alpha.49</Version>
<Version>1.0.0-alpha.50</Version>
</PropertyGroup>

<ItemGroup>
Expand Down

0 comments on commit 7962d74

Please sign in to comment.