summaryrefslogtreecommitdiff
path: root/grapher/Models/Serialized/GUISettings.cs
diff options
context:
space:
mode:
authora1xd <[email protected]>2020-10-25 23:57:44 -0400
committerGitHub <[email protected]>2020-10-25 23:57:44 -0400
commit1601eaffd7c83888fd804c00eae0b0e8633232ee (patch)
tree72beb1b8b32b82ebfd853c04fe85c1f67e1d4afe /grapher/Models/Serialized/GUISettings.cs
parentMerge pull request #37 from JacobPalecki/GUI (diff)
parentupdate signed (diff)
downloadrawaccel-1.2.0.tar.xz
rawaccel-1.2.0.zip
Merge pull request #38 from a1xd/1.2v1.2.0-w7v1.2.0
1.2.0
Diffstat (limited to 'grapher/Models/Serialized/GUISettings.cs')
-rw-r--r--grapher/Models/Serialized/GUISettings.cs10
1 files changed, 8 insertions, 2 deletions
diff --git a/grapher/Models/Serialized/GUISettings.cs b/grapher/Models/Serialized/GUISettings.cs
index c8f87ae..bb35055 100644
--- a/grapher/Models/Serialized/GUISettings.cs
+++ b/grapher/Models/Serialized/GUISettings.cs
@@ -4,6 +4,7 @@ using System;
namespace grapher.Models.Serialized
{
[Serializable]
+ [JsonObject(ItemRequired = Required.Always)]
public class GUISettings
{
#region Constructors
@@ -27,6 +28,9 @@ namespace grapher.Models.Serialized
[JsonProperty(Order = 4)]
public bool ShowVelocityAndGain { get; set; }
+ [JsonProperty(Order = 5)]
+ public bool AutoWriteToDriverOnStartup { get; set; }
+
#endregion Properties
#region Methods
@@ -48,7 +52,8 @@ namespace grapher.Models.Serialized
return DPI == other.DPI &&
PollRate == other.PollRate &&
ShowLastMouseMove == other.ShowLastMouseMove &&
- ShowVelocityAndGain == other.ShowVelocityAndGain;
+ ShowVelocityAndGain == other.ShowVelocityAndGain &&
+ AutoWriteToDriverOnStartup == other.AutoWriteToDriverOnStartup;
}
public override int GetHashCode()
@@ -56,7 +61,8 @@ namespace grapher.Models.Serialized
return DPI.GetHashCode() ^
PollRate.GetHashCode() ^
ShowLastMouseMove.GetHashCode() ^
- ShowVelocityAndGain.GetHashCode();
+ ShowVelocityAndGain.GetHashCode() ^
+ AutoWriteToDriverOnStartup.GetHashCode();
}
#endregion Methods