GUI: Auto-migrate settings from previous version if needed

This commit is contained in:
Katy Coe
2020-12-26 06:06:21 +01:00
parent f64d224b5a
commit d7fcab640c
3 changed files with 25 additions and 2 deletions

View File

@@ -12,7 +12,7 @@ namespace Il2CppInspector.GUI {
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "16.4.0.0")]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "16.8.1.0")]
internal sealed partial class User : global::System.Configuration.ApplicationSettingsBase {
private static User defaultInstance = ((User)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new User())));
@@ -34,5 +34,17 @@ namespace Il2CppInspector.GUI {
this["ShowDecompilerWarning"] = value;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("True")]
public bool UpgradeRequired {
get {
return ((bool)(this["UpgradeRequired"]));
}
set {
this["UpgradeRequired"] = value;
}
}
}
}