feat: better internal handling for plugin settings

This commit is contained in:
Xjph 2021-09-04 15:20:52 -02:30
commit 78ffcc167b
3 changed files with 78 additions and 37 deletions

View file

@ -130,5 +130,17 @@ namespace Observatory.Properties {
this["CoreVersion"] = value;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("")]
public string PluginSettings {
get {
return ((string)(this["PluginSettings"]));
}
set {
this["PluginSettings"] = value;
}
}
}
}

View file

@ -29,5 +29,8 @@
<Setting Name="CoreVersion" Type="System.String" Scope="User">
<Value Profile="(Default)" />
</Setting>
<Setting Name="PluginSettings" Type="System.String" Scope="User">
<Value Profile="(Default)" />
</Setting>
</Settings>
</SettingsFile>