Skip to content

Commit

Permalink
Update FrostyEditor/ViewModels/Windows/ProfileSelectWindowViewModel.cs
Browse files Browse the repository at this point in the history
Co-authored-by: jona <[email protected]>
  • Loading branch information
shoushou1106 and wannkunstbeikor authored Aug 28, 2023
1 parent af67c71 commit ff37ebb
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,10 @@ private async Task AddProfile()

// Make sure config doesn't already exist
bool isProfileExist = false;
foreach (string profile in Config.GameProfiles)
if (Config.AddGame(key, Path.GetDirectoryName(file.Path.LocalPath) ?? string.Empty))
{
Profiles.Add(new ProfileConfig(key));
}
{
if (key == profile)
{
Expand Down

0 comments on commit ff37ebb

Please sign in to comment.