Step 2, fixing the issue
This commit is contained in:
parent
5ab5e042aa
commit
978a8e79a4
@ -251,7 +251,7 @@ namespace Ryujinx.Ava.UI.Views.Input
|
||||
if (!args.NewColor.HasValue) return;
|
||||
if (DataContext is not ControllerInputViewModel cVm) return;
|
||||
if (!cVm.Config.EnableLedChanging) return;
|
||||
|
||||
if (cVm.Config.TurnOffLed) return;
|
||||
cVm.ParentModel.SelectedGamepad.SetLed(args.NewColor.Value.ToUInt32());
|
||||
}
|
||||
|
||||
@ -259,14 +259,8 @@ namespace Ryujinx.Ava.UI.Views.Input
|
||||
{
|
||||
if (DataContext is not ControllerInputViewModel cVm) return;
|
||||
if (!cVm.Config.EnableLedChanging) return;
|
||||
if (cVm.Config.TurnOffLed)
|
||||
{
|
||||
cVm.ParentModel.SelectedGamepad.ClearLed();
|
||||
}
|
||||
else
|
||||
{
|
||||
cVm.ParentModel.SelectedGamepad.SetLed(cVm.Config.LedColor.ToUInt32());
|
||||
}
|
||||
if (cVm.Config.TurnOffLed) return;
|
||||
cVm.ParentModel.SelectedGamepad.SetLed(cVm.Config.LedColor.ToUInt32());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user