diff options
author | Emmanuel Hansen <emmausssss@gmail.com> | 2022-07-11 22:25:33 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-12 00:25:33 +0200 |
commit | 7d9a5feccbedc32dfeec00478c3a67ffff26dc60 (patch) | |
tree | c22b5d5eb5535824b4b5e54b137df1cf70c1b5f2 /Ryujinx.Ava/Ui/ViewModels/ControllerSettingsViewModel.cs | |
parent | 14ae4e276f81aa6511fb6d00c8d7b9998a88a1c8 (diff) |
Avalonia - Couple fixes and improvements (#3451)1.1.173
* fix updater check crash
* remove line
* reduce cheat window sizes
* enable tiered compilation and r2r
* remove warning on LaunchState
* remove warnings related to tasks
* addressed review
* undo csproj indentation
* fix tabs in axaml file
* remove double line
* remove R2R
Diffstat (limited to 'Ryujinx.Ava/Ui/ViewModels/ControllerSettingsViewModel.cs')
-rw-r--r-- | Ryujinx.Ava/Ui/ViewModels/ControllerSettingsViewModel.cs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Ryujinx.Ava/Ui/ViewModels/ControllerSettingsViewModel.cs b/Ryujinx.Ava/Ui/ViewModels/ControllerSettingsViewModel.cs index 8811a3c5..c570aa8d 100644 --- a/Ryujinx.Ava/Ui/ViewModels/ControllerSettingsViewModel.cs +++ b/Ryujinx.Ava/Ui/ViewModels/ControllerSettingsViewModel.cs @@ -658,7 +658,7 @@ namespace Ryujinx.Ava.Ui.ViewModels return config; } - public void LoadProfile() + public async void LoadProfile() { if (Device == 0) { @@ -700,9 +700,9 @@ namespace Ryujinx.Ava.Ui.ViewModels catch (JsonException) { } catch (InvalidOperationException) { - ContentDialogHelper.CreateErrorDialog(_owner.GetVisualRoot() as StyleableWindow, - String.Format(LocaleManager.Instance["DialogProfileInvalidProfileErrorMessage"], ProfileName)); Logger.Error?.Print(LogClass.Configuration, $"Profile {ProfileName} is incompatible with the current input configuration system."); + await ContentDialogHelper.CreateErrorDialog(_owner.GetVisualRoot() as StyleableWindow, + String.Format(LocaleManager.Instance["DialogProfileInvalidProfileErrorMessage"], ProfileName)); return; } @@ -736,7 +736,7 @@ namespace Ryujinx.Ava.Ui.ViewModels if (ProfileName == LocaleManager.Instance["ControllerSettingsProfileDefault"]) { - ContentDialogHelper.CreateErrorDialog(_owner.GetVisualRoot() as StyleableWindow, LocaleManager.Instance["DialogProfileDefaultProfileOverwriteErrorMessage"]); + await ContentDialogHelper.CreateErrorDialog(_owner.GetVisualRoot() as StyleableWindow, LocaleManager.Instance["DialogProfileDefaultProfileOverwriteErrorMessage"]); return; } @@ -769,7 +769,7 @@ namespace Ryujinx.Ava.Ui.ViewModels } else { - ContentDialogHelper.CreateErrorDialog(_owner.GetVisualRoot() as StyleableWindow, LocaleManager.Instance["DialogProfileInvalidProfileNameErrorMessage"]); + await ContentDialogHelper.CreateErrorDialog(_owner.GetVisualRoot() as StyleableWindow, LocaleManager.Instance["DialogProfileInvalidProfileNameErrorMessage"]); } } } |