aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Ava/UI/ViewModels/ControllerSettingsViewModel.cs
diff options
context:
space:
mode:
authorAc_K <Acoustik666@gmail.com>2023-01-21 02:06:19 +0100
committerGitHub <noreply@github.com>2023-01-21 02:06:19 +0100
commit8474d52778d6bc45146b59a1fc921e6702f4b96a (patch)
treece34a56ec8a2296bf3e5f891853a31a8d6bab6e0 /Ryujinx.Ava/UI/ViewModels/ControllerSettingsViewModel.cs
parentdd7a924596ff5925baa8b7f3ec85ceda8cb1cd8a (diff)
Ava UI: Fix `string.Format` issues in Locale (#4305)1.1.580
* Ava UI: Fix `string.Format` issues in Locale * LoacLanguage everytime now * Apply suggestions from code review Co-authored-by: TSRBerry <20988865+TSRBerry@users.noreply.github.com> * fix UpdateAndGetDynamicValue Co-authored-by: TSRBerry <20988865+TSRBerry@users.noreply.github.com>
Diffstat (limited to 'Ryujinx.Ava/UI/ViewModels/ControllerSettingsViewModel.cs')
-rw-r--r--Ryujinx.Ava/UI/ViewModels/ControllerSettingsViewModel.cs4
1 files changed, 3 insertions, 1 deletions
diff --git a/Ryujinx.Ava/UI/ViewModels/ControllerSettingsViewModel.cs b/Ryujinx.Ava/UI/ViewModels/ControllerSettingsViewModel.cs
index 5d5ca5f8..f63fc349 100644
--- a/Ryujinx.Ava/UI/ViewModels/ControllerSettingsViewModel.cs
+++ b/Ryujinx.Ava/UI/ViewModels/ControllerSettingsViewModel.cs
@@ -3,6 +3,8 @@ using Avalonia.Controls;
using Avalonia.Controls.ApplicationLifetimes;
using Avalonia.Svg.Skia;
using Avalonia.Threading;
+using LibHac.Bcat;
+using LibHac.Tools.Fs;
using Ryujinx.Ava.Common.Locale;
using Ryujinx.Ava.Input;
using Ryujinx.Ava.UI.Controls;
@@ -717,7 +719,7 @@ namespace Ryujinx.Ava.UI.ViewModels
{
Logger.Error?.Print(LogClass.Configuration, $"Profile {ProfileName} is incompatible with the current input configuration system.");
- await ContentDialogHelper.CreateErrorDialog(string.Format(LocaleManager.Instance[LocaleKeys.DialogProfileInvalidProfileErrorMessage], ProfileName));
+ await ContentDialogHelper.CreateErrorDialog(LocaleManager.Instance.UpdateAndGetDynamicValue(LocaleKeys.DialogProfileInvalidProfileErrorMessage, ProfileName));
return;
}