1
0
Fork 0
mirror of https://github.com/Ryujinx/Ryujinx.git synced 2024-12-21 09:22:01 +00:00

Ava UI: Content Dialog Fixes (#6482)

* Don’t use ContentDialogHelper when not necessary

* Remove `ExtendClientAreaToDecorationsHint`
This commit is contained in:
Isaac Marovitz 2024-03-16 19:34:26 +00:00 committed by GitHub
parent 50bdda5baa
commit bb8c5ebae1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 2 additions and 3 deletions

View file

@ -9,7 +9,6 @@ namespace Ryujinx.Ava.UI.Windows
{ {
InitializeComponent(); InitializeComponent();
ExtendClientAreaToDecorationsHint = true;
TransparencyLevelHint = new[] { WindowTransparencyLevel.Transparent }; TransparencyLevelHint = new[] { WindowTransparencyLevel.Transparent };
WindowStartupLocation = WindowStartupLocation.Manual; WindowStartupLocation = WindowStartupLocation.Manual;
SystemDecorations = SystemDecorations.None; SystemDecorations = SystemDecorations.None;

View file

@ -47,7 +47,7 @@ namespace Ryujinx.Ava.UI.Windows
contentDialog.Styles.Add(bottomBorder); contentDialog.Styles.Add(bottomBorder);
await ContentDialogHelper.ShowAsync(contentDialog); await contentDialog.ShowAsync();
} }
private void SaveAndClose(object sender, RoutedEventArgs routedEventArgs) private void SaveAndClose(object sender, RoutedEventArgs routedEventArgs)

View file

@ -49,7 +49,7 @@ namespace Ryujinx.Ava.UI.Windows
contentDialog.Styles.Add(bottomBorder); contentDialog.Styles.Add(bottomBorder);
await ContentDialogHelper.ShowAsync(contentDialog); await contentDialog.ShowAsync();
} }
private void Close(object sender, RoutedEventArgs e) private void Close(object sender, RoutedEventArgs e)