mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2025-06-28 21:56:24 +02:00
misc: chore: add/remove event handler as window is opened/closed
This commit is contained in:
parent
25cc9b24b4
commit
551d2c1134
2 changed files with 25 additions and 8 deletions
|
@ -8,13 +8,17 @@ namespace Ryujinx.Ava.UI.Windows
|
|||
{
|
||||
public partial class CompatibilityListWindow : StyleableAppWindow
|
||||
{
|
||||
public static Task Show(string titleId = null) =>
|
||||
ShowAsync(new CompatibilityListWindow
|
||||
public static async Task Show(string titleId = null)
|
||||
{
|
||||
using CompatibilityViewModel compatWindow = new(RyujinxApp.MainWindow.ViewModel.ApplicationLibrary);
|
||||
|
||||
await ShowAsync(new CompatibilityListWindow
|
||||
{
|
||||
DataContext = new CompatibilityViewModel(RyujinxApp.MainWindow.ViewModel.ApplicationLibrary),
|
||||
DataContext = compatWindow,
|
||||
SearchBoxFlush = { Text = titleId ?? string.Empty },
|
||||
SearchBoxNormal = { Text = titleId ?? string.Empty }
|
||||
});
|
||||
}
|
||||
|
||||
public CompatibilityListWindow() : base(useCustomTitleBar: true, 37)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue