Skip to content

Commit

Permalink
Merge pull request #168 from jupster/bugfix/Keys
Browse files Browse the repository at this point in the history
{BugFix} Stops all directory keys being added
  • Loading branch information
jupster authored Mar 3, 2024
2 parents b86dd9b + 3b9291f commit dbfc959
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion FASTER/ViewModel/ProfileViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,8 @@ internal async Task CopyModKeys()
foreach (var line in steamMods)
{
try
{ mods.AddRange(Directory.GetFiles(Path.Combine(Properties.Settings.Default.modStagingDirectory, line.Id.ToString()), "*.bikey", SearchOption.AllDirectories)); }
{ mods.AddRange(Directory.GetDirectories(Path.Combine(Properties.Settings.Default.modStagingDirectory, line.Id.ToString()))
.SelectMany(subDir => Directory.GetFiles(subDir, "*bikey", SearchOption.TopDirectoryOnly))); }
catch (DirectoryNotFoundException)
{ /*there was no directory*/ }
}
Expand Down

0 comments on commit dbfc959

Please sign in to comment.