From 7d9a5feccbedc32dfeec00478c3a67ffff26dc60 Mon Sep 17 00:00:00 2001 From: Emmanuel Hansen Date: Mon, 11 Jul 2022 22:25:33 +0000 Subject: Avalonia - Couple fixes and improvements (#3451) * 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 --- Ryujinx.Ava/Ui/ViewModels/UserProfileViewModel.cs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'Ryujinx.Ava/Ui/ViewModels/UserProfileViewModel.cs') diff --git a/Ryujinx.Ava/Ui/ViewModels/UserProfileViewModel.cs b/Ryujinx.Ava/Ui/ViewModels/UserProfileViewModel.cs index d75f65b1..66fa7e34 100644 --- a/Ryujinx.Ava/Ui/ViewModels/UserProfileViewModel.cs +++ b/Ryujinx.Ava/Ui/ViewModels/UserProfileViewModel.cs @@ -1,3 +1,4 @@ +using Avalonia.Threading; using Ryujinx.Ava.Common.Locale; using Ryujinx.Ava.Ui.Controls; using Ryujinx.Ava.Ui.Windows; @@ -141,8 +142,12 @@ namespace Ryujinx.Ava.Ui.ViewModels if (profile == null) { - ContentDialogHelper.CreateErrorDialog(_owner, - LocaleManager.Instance["DialogUserProfileDeletionWarningMessage"]); + Dispatcher.UIThread.Post(async () => + { + await ContentDialogHelper.CreateErrorDialog(_owner, + LocaleManager.Instance["DialogUserProfileDeletionWarningMessage"]); + }); + return; } -- cgit v1.2.3