mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2025-07-29 03:27:11 +02:00
misc: chore: Optimize AboutWindowViewModel resource disposal
This commit is contained in:
parent
ad89cf39b6
commit
43f7b000ca
2 changed files with 14 additions and 8 deletions
|
@ -18,8 +18,6 @@ namespace Ryujinx.Ava.UI.Windows
|
|||
{
|
||||
public AboutWindow()
|
||||
{
|
||||
DataContext = new AboutWindowViewModel();
|
||||
|
||||
InitializeComponent();
|
||||
|
||||
GitHubRepoButton.Tag =
|
||||
|
@ -28,12 +26,14 @@ namespace Ryujinx.Ava.UI.Windows
|
|||
|
||||
public static async Task Show()
|
||||
{
|
||||
using AboutWindowViewModel viewModel = new();
|
||||
|
||||
ContentDialog contentDialog = new()
|
||||
{
|
||||
PrimaryButtonText = string.Empty,
|
||||
SecondaryButtonText = string.Empty,
|
||||
CloseButtonText = LocaleManager.Instance[LocaleKeys.UserProfilesClose],
|
||||
Content = new AboutWindow()
|
||||
Content = new AboutWindow { DataContext = viewModel }
|
||||
};
|
||||
|
||||
Style closeButton = new(x => x.Name("CloseButton"));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue