From 7a565b0511ac2b04ea689430e4e8effd063f8f76 Mon Sep 17 00:00:00 2001 From: joekolodz Date: Wed, 5 Jan 2022 21:44:25 -0600 Subject: [PATCH] add property changed tracking for IsOneShot property --- src/ViewModels/ButtonMapViewModel.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/ViewModels/ButtonMapViewModel.cs b/src/ViewModels/ButtonMapViewModel.cs index 9722f5a..0735f55 100644 --- a/src/ViewModels/ButtonMapViewModel.cs +++ b/src/ViewModels/ButtonMapViewModel.cs @@ -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