Settings file changes

change from .config to .settings
Set UpdateAddress to an Application property, not a user property.
This commit is contained in:
Sean Kaim
2016-05-07 22:31:02 -04:00
parent b758b053d5
commit 1757c141fe
5 changed files with 15 additions and 11 deletions

View File

@@ -24,6 +24,13 @@ namespace mRemoteNG.Config.Settings.Providers
}
base.Initialize(ApplicationName, col);
/*
if (!File.Exists(GetDotSettingsFile()))
{
// do something smart.
}
*/
}
private string _applicationName;
@@ -48,7 +55,7 @@ namespace mRemoteNG.Config.Settings.Providers
public virtual string GetAppSettingsFilename()
{
//Used to determine the filename to store the settings
return "app.config"; //ApplicationName & ".settings"
return Application.ProductName + ".settings";
}
public override void SetPropertyValues(SettingsContext context, SettingsPropertyValueCollection propvals)

View File

@@ -48,7 +48,7 @@ namespace mRemoteNG.Config.Settings.Providers
public virtual string GetAppSettingsFilename()
{
//Used to determine the filename to store the settings
return "portable.config"; //ApplicationName & ".settings"
return "portable.settings.";
}
public override void SetPropertyValues(SettingsContext context, SettingsPropertyValueCollection propvals)

View File

@@ -13,7 +13,7 @@ namespace mRemoteNG.My {
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "14.0.0.0")]
internal sealed partial class Settings : System.Configuration.ApplicationSettingsBase {
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
@@ -2364,7 +2364,7 @@ namespace mRemoteNG.My {
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Configuration.ApplicationScopedSettingAttribute()]
[global::System.Configuration.SettingsProviderAttribute(typeof(mRemoteNG.Config.Settings.Providers.ChooseProvider))]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("https://update.mremoteng.org/")]
@@ -2372,9 +2372,6 @@ namespace mRemoteNG.My {
get {
return ((string)(this["UpdateAddress"]));
}
set {
this["UpdateAddress"] = value;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]

View File

@@ -545,7 +545,7 @@
<Setting Name="AnnouncementAddress" Provider="mRemoteNG.Config.Settings.Providers.ChooseProvider" Type="System.String" Scope="Application">
<Value Profile="(Default)">https://update.mremoteng.org/announcement.txt</Value>
</Setting>
<Setting Name="UpdateAddress" Provider="mRemoteNG.Config.Settings.Providers.ChooseProvider" Type="System.String" Scope="User">
<Setting Name="UpdateAddress" Provider="mRemoteNG.Config.Settings.Providers.ChooseProvider" Type="System.String" Scope="Application">
<Value Profile="(Default)">https://update.mremoteng.org/</Value>
</Setting>
<Setting Name="ConDefaultLoadBalanceInfo" Provider="mRemoteNG.Config.Settings.Providers.ChooseProvider" Type="System.String" Scope="User">

View File

@@ -581,9 +581,6 @@
<setting name="CompatibilityWarnLenovoAutoScrollUtility" serializeAs="String">
<value>True</value>
</setting>
<setting name="UpdateAddress" serializeAs="String">
<value>https://update.mremoteng.org/</value>
</setting>
<setting name="ConDefaultLoadBalanceInfo" serializeAs="String">
<value />
</setting>
@@ -1723,6 +1720,9 @@
<setting name="AnnouncementAddress" serializeAs="String">
<value>https://update.mremoteng.org/announcement.txt</value>
</setting>
<setting name="UpdateAddress" serializeAs="String">
<value>https://update.mremoteng.org/</value>
</setting>
</mRemoteNG.My.Settings>
<My.Settings>
<setting name="SupportedUICultures" serializeAs="String">