Skip to content

Commit

Permalink
Fix for #848 to correct the function of the PotentiometerIndicatorCli…
Browse files Browse the repository at this point in the history
…ckable
  • Loading branch information
BlueFinBima committed Dec 22, 2024
1 parent f3aeb9e commit 0c07082
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
5 changes: 0 additions & 5 deletions Helios/Controls/PotentiometerIndcatorClickable.cs
Original file line number Diff line number Diff line change
Expand Up @@ -147,11 +147,6 @@ protected override void OnPropertyChanged(PropertyNotificationEventArgs args)
case "On":
case "Pushed":
KnobImage = Pushed ? (On ? _indicatorOnClickedImage : PushedImage) : (On ? _indicatorOnNormalImage : UnpushedImage);

if (AllowRotation != RotaryClickAllowRotationType.Both)
{
Value = InitialValue;
}
break;
default:
base.OnPropertyChanged(args);
Expand Down
4 changes: 0 additions & 4 deletions Helios/Controls/RotaryEncoderIndcatorClickable.cs
Original file line number Diff line number Diff line change
Expand Up @@ -145,10 +145,6 @@ protected override void OnPropertyChanged(PropertyNotificationEventArgs args)
case "On":
case "Pushed":
KnobImage = Pushed ? (On ? _indicatorOnClickedImage : PushedImage) : (On ? _indicatorOnNormalImage : UnpushedImage);
if (AllowRotation != RotaryClickAllowRotationType.Both)
{
// No code for encoder
}
break;
default:
base.OnPropertyChanged(args);
Expand Down

0 comments on commit 0c07082

Please sign in to comment.