aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Ava/UI/Windows/AboutWindow.axaml.cs
diff options
context:
space:
mode:
authorAc_K <Acoustik666@gmail.com>2023-01-09 04:37:20 +0100
committerGitHub <noreply@github.com>2023-01-09 03:37:20 +0000
commit610eecc1c1fec2203fff1ebd71cd10798fbcc05a (patch)
tree5855ddb337ac613df0d912264ce02b5341c48aa8 /Ryujinx.Ava/UI/Windows/AboutWindow.axaml.cs
parent492056abf6c97696075f16101009aa463c319832 (diff)
ava: Fixes regressions from refactoring (#4237)
* ava: Fix regressions from #4178 * Remove duplicated code * real fix for right click menu Co-Authored-By: Isaac Marovitz <42140194+IsaacMarovitz@users.noreply.github.com> * Remove ContentDialogOverlay Co-authored-by: Isaac Marovitz <42140194+IsaacMarovitz@users.noreply.github.com>
Diffstat (limited to 'Ryujinx.Ava/UI/Windows/AboutWindow.axaml.cs')
-rw-r--r--Ryujinx.Ava/UI/Windows/AboutWindow.axaml.cs11
1 files changed, 5 insertions, 6 deletions
diff --git a/Ryujinx.Ava/UI/Windows/AboutWindow.axaml.cs b/Ryujinx.Ava/UI/Windows/AboutWindow.axaml.cs
index 5dbbbcdd..36a28605 100644
--- a/Ryujinx.Ava/UI/Windows/AboutWindow.axaml.cs
+++ b/Ryujinx.Ava/UI/Windows/AboutWindow.axaml.cs
@@ -4,6 +4,7 @@ using Avalonia.Interactivity;
using Avalonia.Styling;
using FluentAvalonia.UI.Controls;
using Ryujinx.Ava.Common.Locale;
+using Ryujinx.Ava.UI.Helpers;
using Ryujinx.Ava.UI.ViewModels;
using Ryujinx.Ui.Common.Helper;
using System.Threading.Tasks;
@@ -22,14 +23,12 @@ namespace Ryujinx.Ava.UI.Windows
public static async Task Show()
{
- var content = new AboutWindow();
-
ContentDialog contentDialog = new()
{
- PrimaryButtonText = "",
+ PrimaryButtonText = "",
SecondaryButtonText = "",
- CloseButtonText = LocaleManager.Instance[LocaleKeys.UserProfilesClose],
- Content = content
+ CloseButtonText = LocaleManager.Instance[LocaleKeys.UserProfilesClose],
+ Content = new AboutWindow()
};
Style closeButton = new(x => x.Name("CloseButton"));
@@ -41,7 +40,7 @@ namespace Ryujinx.Ava.UI.Windows
contentDialog.Styles.Add(closeButton);
contentDialog.Styles.Add(closeButtonParent);
- await contentDialog.ShowAsync();
+ await ContentDialogHelper.ShowAsync(contentDialog);
}
private void Button_OnClick(object sender, RoutedEventArgs e)