Compare commits

...

3 Commits

Author SHA1 Message Date
Vladimir Sokolov
f4e3029fcc Merge 1b7032b589 into e104ee6be3 2025-03-02 14:07:15 +00:00
Vova
1b7032b589 smal fix 2025-03-03 00:07:05 +10:00
Vova
e097ea71ff Fix: exclude device id when loading preset (independent presets)
fixed bug when selected gamepad disappears if another gamepad was disconnected
2025-03-02 23:49:40 +10:00

View File

@@ -465,7 +465,11 @@ namespace Ryujinx.Ava.UI.ViewModels.Input
await Dispatcher.UIThread.InvokeAsync(() =>
{
LoadDevices();
IsModified = true;
LoadSavedConfiguration();
FindPairedDevice();
_isChangeTrackingActive = true;
return System.Threading.Tasks.Task.CompletedTask;
});
@@ -474,7 +478,6 @@ namespace Ryujinx.Ava.UI.ViewModels.Input
private async void HandleOnGamepadConnected(string id)
{
_isChangeTrackingActive = false;
await Dispatcher.UIThread.InvokeAsync(() =>
{
LoadDevices();
@@ -485,7 +488,6 @@ namespace Ryujinx.Ava.UI.ViewModels.Input
IsModified = true;
LoadSavedConfiguration();
}
_isChangeTrackingActive = true;
});
}
@@ -847,6 +849,8 @@ namespace Ryujinx.Ava.UI.ViewModels.Input
{
_isLoaded = false;
config.Id = null; // ignore device IDs (there is no longer a need to store device IDs for presets due to their independence from devices)
LoadConfiguration(config);
// This line of code hard-links profiles to controllers, the commented line allows profiles to be applied to all controllers