mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2026-06-07 04:49:15 +00:00
Refresh input modified state only when keybinds actually change
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user