Merge pull request #120 from Cyberboss/FixSettings

Fix chat settings being reset
This commit is contained in:
Jordan Brown
2017-07-05 14:33:39 -04:00
committed by GitHub
4 changed files with 8 additions and 3 deletions
+5
View File
@@ -69,6 +69,11 @@ namespace TGCommandLine
case "quit":
case "exit":
return (int)ExitCode.Normal;
#if DEBUG
case "debug-upgrade":
Server.GetComponent<ITGSService>().PrepareForUpdate();
return (int)ExitCode.Normal;
#endif
default:
//linq voodoo to get quoted strings
var formattedCommand = NextCommand.Split('"')
+1 -1
View File
@@ -59,7 +59,7 @@
<value>0</value>
</setting>
<setting name="SettingsVersion" serializeAs="String">
<value>0</value>
<value>1</value>
</setting>
<setting name="ReattachCommsKey" serializeAs="String">
<value />
+1 -1
View File
@@ -217,7 +217,7 @@ namespace TGServerService.Properties {
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("0")]
[global::System.Configuration.DefaultSettingValueAttribute("1")]
public int SettingsVersion {
get {
return ((int)(this["SettingsVersion"]));
+1 -1
View File
@@ -51,7 +51,7 @@
<Value Profile="(Default)">0</Value>
</Setting>
<Setting Name="SettingsVersion" Type="System.Int32" Scope="User">
<Value Profile="(Default)">0</Value>
<Value Profile="(Default)">1</Value>
</Setting>
<Setting Name="ReattachCommsKey" Type="System.String" Scope="User">
<Value Profile="(Default)" />