Refresh input modified state only when keybinds actually change

This commit is contained in:
Babib3l
2026-03-30 22:04:23 +02:00
parent fa0696ca27
commit 23b9a47d08
4 changed files with 70 additions and 47 deletions

View File

@@ -73,7 +73,6 @@ namespace Ryujinx.Ava.UI.Views.Input
if (be.ButtonValue.HasValue)
{
Button buttonValue = be.ButtonValue.Value;
ViewModel.ParentModel.IsModified = true;
switch (button.Name)
{
@@ -162,6 +161,8 @@ namespace Ryujinx.Ava.UI.Views.Input
ViewModel.Config.RightStickLeft = buttonValue.AsHidType<PhysicalKey>();
break;
}
ViewModel.ParentModel.RefreshModifiedState();
}
};
@@ -240,7 +241,7 @@ namespace Ryujinx.Ava.UI.Views.Input
if (buttonActions.TryGetValue(_currentAssigner.ToggledButton.Name, out Action action))
{
action();
ViewModel.ParentModel.IsModified = true;
ViewModel.ParentModel.RefreshModifiedState();
}
}
}