1
0
mirror of synced 2024-11-22 15:53:51 +00:00
MassiveKnob/Windows/MassiveKnob.Plugin.CoreAudio/SetDefault/DeviceSetDefaultActionSettingsViewModel.cs
Mark van Renswoude cae557e7e1 Implemented default device switching
Added VoiceMeeter plugin (run macro and get status)
Added Inno Setup script
Added Fusion 360 files for housing designs
2021-03-06 10:53:38 +01:00

42 lines
1.1 KiB
C#

using MassiveKnob.Plugin.CoreAudio.Base;
namespace MassiveKnob.Plugin.CoreAudio.SetDefault
{
public class DeviceSetDefaultActionSettingsViewModel : BaseDeviceSettingsViewModel<DeviceSetDefaultActionSettings>
{
// ReSharper disable UnusedMember.Global - used by WPF Binding
public bool Playback
{
get => Settings.Playback;
set
{
if (value == Settings.Playback)
return;
Settings.Playback = value;
OnPropertyChanged();
}
}
public bool Communications
{
get => Settings.Communications;
set
{
if (value == Settings.Communications)
return;
Settings.Communications = value;
OnPropertyChanged();
}
}
// ReSharper restore UnusedMember.Global
// ReSharper disable once SuggestBaseTypeForParameter - by design
public DeviceSetDefaultActionSettingsViewModel(DeviceSetDefaultActionSettings settings) : base(settings)
{
}
}
}