Skip to content
This repository has been archived by the owner on Jan 7, 2024. It is now read-only.

Commit

Permalink
Fixed SynchronizationIsEnabled flag not being propagated to new devices
Browse files Browse the repository at this point in the history
  • Loading branch information
iXab3r committed Jan 11, 2023
1 parent ef4ae96 commit d3bc848
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ public MicrophoneControllerViewModel(
}, Log.HandleUiException)
.AddTo(Anchors);

if (configProvider.ActualConfig.VolumeControlEnabled && configProvider.ActualConfig.Volume != null)
if (VolumeControlIsEnabled && configProvider.ActualConfig.Volume != null)
{
Log.Debug(() => $"Setting initial Volume of {Controller} to {configProvider.ActualConfig.Volume}");
Controller.Volume = configProvider.ActualConfig.Volume;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ public CollectionMMDevicesController(IReadOnlyObservableCollection<IMMDeviceCont
.OnItemAdded(newDevice =>
{
Log.Debug(() => $"New device {newDevice.DeviceId} detected in All devices mode, assigning following parameters: {new {Mute, VolumePercent = Volume}}");
newDevice.SynchronizationIsEnabled = SynchronizationIsEnabled;
if (Mute != null)
{
SetMuteSafe(Log, newDevice, Mute);
Expand Down

0 comments on commit d3bc848

Please sign in to comment.