mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2025-04-24 06:47:44 +02:00
Removed an extra check where the gamepad connection message could appear along with the gamepad settings.
Fixed: Added configuration preload to avoid an error when returning to the initial state when the paired gamepad is disconnected
This commit is contained in:
parent
6bc0429cbb
commit
f46fba4a15
1 changed files with 9 additions and 7 deletions
|
@ -349,7 +349,6 @@ namespace Ryujinx.Ava.UI.ViewModels.Input
|
||||||
ConfigViewModel = new ControllerInputViewModel(this, new GamepadInputConfig(controllerInputConfig), VisualStick);
|
ConfigViewModel = new ControllerInputViewModel(this, new GamepadInputConfig(controllerInputConfig), VisualStick);
|
||||||
}
|
}
|
||||||
|
|
||||||
FindPairedDeviceInConfigFile();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void FindPairedDeviceInConfigFile()
|
private void FindPairedDeviceInConfigFile()
|
||||||
|
@ -946,9 +945,12 @@ namespace Ryujinx.Ava.UI.ViewModels.Input
|
||||||
|
|
||||||
public void RevertChanges()
|
public void RevertChanges()
|
||||||
{
|
{
|
||||||
|
LoadConfiguration(); // configuration preload is required if the paired gamepad was disconnected but was changed to another gamepad
|
||||||
Device = Devices.ToList().FindIndex(d => d.Id == RevertDeviceId);
|
Device = Devices.ToList().FindIndex(d => d.Id == RevertDeviceId);
|
||||||
|
|
||||||
LoadDevice();
|
LoadDevice();
|
||||||
LoadConfiguration();
|
LoadConfiguration();
|
||||||
|
|
||||||
OnPropertyChanged();
|
OnPropertyChanged();
|
||||||
IsModified = false;
|
IsModified = false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue