mirror of
https://github.com/mRemoteNG/mRemoteNG.git
synced 2026-02-26 12:08:37 +08:00
Settings file changes
change from .config to .settings Set UpdateAddress to an Application property, not a user property.
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
7
mRemoteV1/Properties/Settings.Designer.cs
generated
7
mRemoteV1/Properties/Settings.Designer.cs
generated
@@ -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()]
|
||||
|
||||
@@ -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">
|
||||
|
||||
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user