diff --git a/FrostyEditor/ViewModels/Windows/ProfileSelectWindowViewModel.cs b/FrostyEditor/ViewModels/Windows/ProfileSelectWindowViewModel.cs index 487584848..7ddb2d604 100644 --- a/FrostyEditor/ViewModels/Windows/ProfileSelectWindowViewModel.cs +++ b/FrostyEditor/ViewModels/Windows/ProfileSelectWindowViewModel.cs @@ -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) {