mirror of
https://github.com/cemu-project/DS4Windows.git
synced 2024-11-22 09:19:18 +01:00
Update IdText when MacAddress property changes
This commit is contained in:
parent
605f2e8cdf
commit
de3940003a
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user