diff options
| author | Jacob Palecki <[email protected]> | 2020-09-01 00:56:07 -0700 |
|---|---|---|
| committer | Jacob Palecki <[email protected]> | 2020-09-01 00:56:07 -0700 |
| commit | b5b87e24053c9f52a2edb5b1cb48f8e27e434ce1 (patch) | |
| tree | 16311322d41596a69cbd2932ae8fe9dafb45401e /grapher/Models/AccelGUI.cs | |
| parent | Set whole or by component with toolstrip item (diff) | |
| download | rawaccel-b5b87e24053c9f52a2edb5b1cb48f8e27e434ce1.tar.xz rawaccel-b5b87e24053c9f52a2edb5b1cb48f8e27e434ce1.zip | |
Show xy charts only when accel applied by component
Diffstat (limited to 'grapher/Models/AccelGUI.cs')
| -rw-r--r-- | grapher/Models/AccelGUI.cs | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/grapher/Models/AccelGUI.cs b/grapher/Models/AccelGUI.cs index 7789337..a26f13d 100644 --- a/grapher/Models/AccelGUI.cs +++ b/grapher/Models/AccelGUI.cs @@ -149,10 +149,10 @@ namespace grapher Settings.ActiveAccel, Settings.RawAccelSettings.AccelerationSettings); AccelCharts.Bind(); - UpdateActiveValueLabels(); + UpdateShownActiveValues(); } - public void UpdateActiveValueLabels() + public void UpdateShownActiveValues() { var settings = Settings.RawAccelSettings.AccelerationSettings; @@ -165,7 +165,9 @@ namespace grapher LimitOrExponent.SetActiveValue(settings.args.x.limit); //exp, powerexp Midpoint.SetActiveValue(settings.args.x.midpoint); ApplyOptions.SetActive(settings.combineMagnitudes); - //Cap.SetActiveValues(Settings.ActiveAccel.GainCap, Settings.ActiveAccel.CapX, Settings.ActiveAccel.CapY, Settings.ActiveAccel.GainCapEnabled); + Cap.SetActiveValues(settings.args.x.gainCap, settings.args.x.scaleCap, settings.args.y.scaleCap, settings.args.x.gainCap > 0); + + AccelCharts.RefreshXY(settings.combineMagnitudes); } private void OnScaleMenuItemClick(object sender, EventArgs e) |