Skip to content

Commit

Permalink
Added info pop-up for when profile type changes
Browse files Browse the repository at this point in the history
  • Loading branch information
simon-wh committed Aug 31, 2019
1 parent c4f7383 commit 76dc352
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Project-Aurora/Project-Aurora/Profiles/Application.cs
Original file line number Diff line number Diff line change
Expand Up @@ -367,6 +367,9 @@ protected virtual void LoadProfilesError(object sender, Newtonsoft.Json.Serializ
((Layer)e.ErrorContext.OriginalObject).Handler = null;
e.ErrorContext.Handled = true;
}
} else if (e.ErrorContext.Path.Equals("$type") && e.ErrorContext.Member == null)
{
MessageBox.Show($"The profile type for {this.Config.Name} has been changed, your profile will be reset and your old one moved to have the extension '.corrupted', ignore the following error", "Profile type changed", MessageBoxButton.OK, MessageBoxImage.Information);
}
}

Expand Down

0 comments on commit 76dc352

Please sign in to comment.