Skip to content

Commit

Permalink
add property changed tracking for IsOneShot property
Browse files Browse the repository at this point in the history
  • Loading branch information
joekolodz committed Jan 6, 2022
1 parent cc40cca commit 7a565b0
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/ViewModels/ButtonMapViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,12 @@ public HOTASButton.ButtonType Type
public bool IsOneShot
{
get => _hotasButton.IsOneShot;
set => _hotasButton.IsOneShot = value;
set
{
if (_hotasButton.IsOneShot == value) return;
_hotasButton.IsOneShot = value;
OnPropertyChanged(nameof(IsOneShot));
}
}

public string ActionName
Expand Down

0 comments on commit 7a565b0

Please sign in to comment.