From de3940003abfb67a478b1b57048fe7ba1214ec45 Mon Sep 17 00:00:00 2001 From: Travis Nickles Date: Thu, 12 Mar 2020 22:41:31 -0500 Subject: [PATCH] Update IdText when MacAddress property changes --- DS4Windows/DS4Forms/ViewModels/ControllerListViewModel.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/DS4Windows/DS4Forms/ViewModels/ControllerListViewModel.cs b/DS4Windows/DS4Forms/ViewModels/ControllerListViewModel.cs index 0d35774..1516606 100644 --- a/DS4Windows/DS4Forms/ViewModels/ControllerListViewModel.cs +++ b/DS4Windows/DS4Forms/ViewModels/ControllerListViewModel.cs @@ -302,6 +302,7 @@ namespace DS4WinWPF.DS4Forms.ViewModels { get => $"{device.DisplayName} ({device.MacAddress})"; } + public event EventHandler IdTextChanged; public string IsExclusiveText { @@ -322,6 +323,7 @@ namespace DS4WinWPF.DS4Forms.ViewModels this.device = device; device.BatteryChanged += (sender, e) => BatteryStateChanged?.Invoke(this, e); device.ChargingChanged += (sender, e) => BatteryStateChanged?.Invoke(this, e); + device.MacAddressChanged += (sender, e) => IdTextChanged?.Invoke(this, e); this.devIndex = devIndex; this.selectedProfile = profile; profileListHolder = collection;