summaryrefslogtreecommitdiff
path: root/grapher/Models/Serialized/GUISettings.cs
diff options
context:
space:
mode:
authorMatthew Strasiotto <[email protected]>2021-05-01 20:22:20 +1000
committerMatthew Strasiotto <[email protected]>2021-05-01 20:22:20 +1000
commit0bbf9ed6a9b95383f4b87f89de2339c57425f576 (patch)
treeada15938b9220d8e78f30e8c099d5232944dc1ea /grapher/Models/Serialized/GUISettings.cs
parentimplement event handlers for streaming mode click (diff)
downloadrawaccel-0bbf9ed6a9b95383f4b87f89de2339c57425f576.tar.xz
rawaccel-0bbf9ed6a9b95383f4b87f89de2339c57425f576.zip
Implement settings save/restore for streaming mode option
Diffstat (limited to 'grapher/Models/Serialized/GUISettings.cs')
-rw-r--r--grapher/Models/Serialized/GUISettings.cs9
1 files changed, 7 insertions, 2 deletions
diff --git a/grapher/Models/Serialized/GUISettings.cs b/grapher/Models/Serialized/GUISettings.cs
index bb35055..a4eb627 100644
--- a/grapher/Models/Serialized/GUISettings.cs
+++ b/grapher/Models/Serialized/GUISettings.cs
@@ -31,6 +31,9 @@ namespace grapher.Models.Serialized
[JsonProperty(Order = 5)]
public bool AutoWriteToDriverOnStartup { get; set; }
+ [JsonProperty(Order = 6)]
+ public bool StreamingMode { get; set; }
+
#endregion Properties
#region Methods
@@ -53,7 +56,8 @@ namespace grapher.Models.Serialized
PollRate == other.PollRate &&
ShowLastMouseMove == other.ShowLastMouseMove &&
ShowVelocityAndGain == other.ShowVelocityAndGain &&
- AutoWriteToDriverOnStartup == other.AutoWriteToDriverOnStartup;
+ AutoWriteToDriverOnStartup == other.AutoWriteToDriverOnStartup &&
+ StreamingMode == other.StreamingMode;
}
public override int GetHashCode()
@@ -62,7 +66,8 @@ namespace grapher.Models.Serialized
PollRate.GetHashCode() ^
ShowLastMouseMove.GetHashCode() ^
ShowVelocityAndGain.GetHashCode() ^
- AutoWriteToDriverOnStartup.GetHashCode();
+ AutoWriteToDriverOnStartup.GetHashCode() ^
+ StreamingMode.GetHashCode();
}
#endregion Methods