diff options
| author | a1xd <[email protected]> | 2020-09-27 23:04:29 -0400 |
|---|---|---|
| committer | a1xd <[email protected]> | 2020-09-27 23:04:29 -0400 |
| commit | 85aefb4ba131521595e48fe1a25f4db9a69e71e6 (patch) | |
| tree | f1c73a42b369f362a40ea251281d98ee02bf0a98 /grapher/Models/Options/OffsetOptions.cs | |
| parent | add os detection to installer (diff) | |
| download | rawaccel-85aefb4ba131521595e48fe1a25f4db9a69e71e6.tar.xz rawaccel-85aefb4ba131521595e48fe1a25f4db9a69e71e6.zip | |
add arg checks in wrapper
minor changes to settings shape, requires driver reinstall
add error handling to writer
grapher changes:
add prettier serialization + comments
add elements for scale and separated limit/exp
reset irrelevant (invisible) arg input before checks/write
Diffstat (limited to 'grapher/Models/Options/OffsetOptions.cs')
| -rw-r--r-- | grapher/Models/Options/OffsetOptions.cs | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/grapher/Models/Options/OffsetOptions.cs b/grapher/Models/Options/OffsetOptions.cs index b351ab5..c6bee75 100644 --- a/grapher/Models/Options/OffsetOptions.cs +++ b/grapher/Models/Options/OffsetOptions.cs @@ -128,16 +128,9 @@ namespace grapher.Models.Options OffsetOption.Show(name); } - public void SetActiveValue(double offset, double legacyOffset) + public void SetActiveValue(double offset, bool legacy) { - if (offset > 0) - { - OffsetOption.SetActiveValue(offset); - } - else - { - OffsetOption.SetActiveValue(legacyOffset); - } + OffsetOption.SetActiveValue(offset); } public override void AlignActiveValues() |