Fix LED turning on in input settings, despite TurnOffLed being set to true #583
@ -259,8 +259,14 @@ 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());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user