Localise ButtonKeyAssigner

This commit is contained in:
Isaac Marovitz 2023-05-18 19:54:32 -04:00 committed by Isaac Marovitz
parent 920777bc4b
commit 3afc37e683

View file

@ -2,6 +2,7 @@ using Avalonia.Controls;
using Avalonia.Controls.Primitives;
using Avalonia.LogicalTree;
using Avalonia.Threading;
using Ryujinx.Ava.Common.Locale;
using Ryujinx.Input;
using Ryujinx.Input.Assigner;
using System;
@ -82,7 +83,7 @@ namespace Ryujinx.Ava.UI.Helpers
if (_shouldUnbind)
{
SetButtonText(ToggledButton, "Unbound");
SetButtonText(ToggledButton, LocaleManager.Instance[LocaleKeys.KeyUnbound]);
}
else if (pressedButton != "")
{
@ -115,4 +116,4 @@ namespace Ryujinx.Ava.UI.Helpers
_shouldUnbind = shouldUnbind;
}
}
}
}