Skip to content

Commit 03c14d6

Browse files
committed
[Attributes] Fix action choices mappings due to Switch type inheriting from Choice type.
1 parent b76b16c commit 03c14d6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

MSFSTouchPortalPlugin/Attributes/TouchPortalActionAttribute.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,9 @@ public TouchPortalActionChoiceAttribute(string choiceValue, string defaultValue
263263

264264
public class TouchPortalActionSwitchAttribute : TouchPortalActionChoiceAttribute
265265
{
266-
public TouchPortalActionSwitchAttribute(bool defaultValue = false) : base(new [] { "On", "Off" }, defaultValue ? 0 : 1) { }
266+
public TouchPortalActionSwitchAttribute(bool defaultValue = false) : base(new [] { "On", "Off" }, defaultValue ? 0 : 1) {
267+
UsedInMapping = false;
268+
}
267269
}
268270

269271
public class TouchPortalActionNumericAttribute : TouchPortalActionDataAttribute

0 commit comments

Comments
 (0)