Skip to content

Commit

Permalink
NeverShowElements parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
A-tG committed May 1, 2022
1 parent 78504ee commit a10adba
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions VoicemeeterOsdProgram/Options/OsdOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,9 @@ public override bool TryParseFrom(string toPropertyName, string fromVal)
case nameof(AlwaysShowElements):
AlwaysShowElements = new(ParseEnumerableFrom<StripElements>(fromVal, ","));
return true;
case nameof(NeverShowElements):
NeverShowElements = new(ParseEnumerableFrom<StripElements>(fromVal, ","));
return true;
case nameof(IgnoreStripsIndexes):
IgnoreStripsIndexes = new(ParseEnumerableFrom<uint>(fromVal, ","));
return true;
Expand All @@ -146,6 +149,9 @@ public override bool TryParseTo(string fromPropertyName, out string toVal)
case nameof(AlwaysShowElements):
toVal = string.Join(", ", AlwaysShowElements);
return true;
case nameof(NeverShowElements):
toVal = string.Join(", ", NeverShowElements);
return true;
case nameof(IgnoreStripsIndexes):
toVal = string.Join(", ", IgnoreStripsIndexes);
return true;
Expand Down

0 comments on commit a10adba

Please sign in to comment.