diff --git a/LenovoLegionToolkit.WPF/Controls/Automation/Steps/PlaySoundAutomationStepControl.cs b/LenovoLegionToolkit.WPF/Controls/Automation/Steps/PlaySoundAutomationStepControl.cs index 5e77d231a..4fa551b3e 100644 --- a/LenovoLegionToolkit.WPF/Controls/Automation/Steps/PlaySoundAutomationStepControl.cs +++ b/LenovoLegionToolkit.WPF/Controls/Automation/Steps/PlaySoundAutomationStepControl.cs @@ -45,9 +45,8 @@ public override IAutomationStep CreateAutomationStep() return new PlaySoundAutomationStep(_path); } - protected override UIElement? GetCustomControl() + protected override UIElement GetCustomControl() { - _openButton.Click += (_, _) => { var ofd = new OpenFileDialog