diff --git a/Ryujinx.Ava/Ryujinx.Ava.csproj b/Ryujinx.Ava/Ryujinx.Ava.csproj
index c851b45135..9818914cfe 100644
--- a/Ryujinx.Ava/Ryujinx.Ava.csproj
+++ b/Ryujinx.Ava/Ryujinx.Ava.csproj
@@ -27,7 +27,7 @@
-
+
diff --git a/Ryujinx.Ava/Ui/Controls/ContentDialogHelper.cs b/Ryujinx.Ava/Ui/Controls/ContentDialogHelper.cs
index 9fcc2d2ec0..9cf4231c51 100644
--- a/Ryujinx.Ava/Ui/Controls/ContentDialogHelper.cs
+++ b/Ryujinx.Ava/Ui/Controls/ContentDialogHelper.cs
@@ -127,9 +127,16 @@ namespace Ryujinx.Ava.Ui.Controls
contentDialog.PrimaryButtonClick += deferCloseAction;
}
- await contentDialog.ShowAsync(ContentDialogPlacement.Popup);
+ if (useOverlay)
+ {
+ await contentDialog.ShowAsync(overlay, ContentDialogPlacement.Popup);
- overlay?.Close();
+ overlay!.Close();
+ }
+ else
+ {
+ await contentDialog.ShowAsync(ContentDialogPlacement.Popup);
+ }
}
if (useOverlay)
@@ -391,4 +398,4 @@ namespace Ryujinx.Ava.Ui.Controls
return string.Empty;
}
}
-}
+}
\ No newline at end of file