From 76dc352a88ca818857161f2faddb395b6de01a2c Mon Sep 17 00:00:00 2001 From: Simon Whyte Date: Sat, 31 Aug 2019 21:07:36 +0100 Subject: [PATCH] Added info pop-up for when profile type changes --- Project-Aurora/Project-Aurora/Profiles/Application.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Project-Aurora/Project-Aurora/Profiles/Application.cs b/Project-Aurora/Project-Aurora/Profiles/Application.cs index 39f11506e..9edcb72ce 100755 --- a/Project-Aurora/Project-Aurora/Profiles/Application.cs +++ b/Project-Aurora/Project-Aurora/Profiles/Application.cs @@ -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); } }