aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTSRBerry <20988865+TSRBerry@users.noreply.github.com>2022-11-29 06:33:46 +0100
committerGitHub <noreply@github.com>2022-11-29 06:33:46 +0100
commitfbf2b09706a55856c76aaf9051007eedf1f4b0ab (patch)
treeed2ef0cb5f34762f1d829c5055a728ae4567078b
parent1fc0f569de518581761ab2f4b751b0dbaf2cd279 (diff)
ava: Make dialogs using an overlay window work on Linux (#3938)1.1.396
-rw-r--r--Ryujinx.Ava/Ryujinx.Ava.csproj2
-rw-r--r--Ryujinx.Ava/Ui/Controls/ContentDialogHelper.cs13
2 files changed, 11 insertions, 4 deletions
diff --git a/Ryujinx.Ava/Ryujinx.Ava.csproj b/Ryujinx.Ava/Ryujinx.Ava.csproj
index c851b451..9818914c 100644
--- a/Ryujinx.Ava/Ryujinx.Ava.csproj
+++ b/Ryujinx.Ava/Ryujinx.Ava.csproj
@@ -27,7 +27,7 @@
<PackageReference Include="Avalonia.Svg.Skia" Version="0.10.18" />
<PackageReference Include="jp2masa.Avalonia.Flexbox" Version="0.2.0" />
<PackageReference Include="DynamicData" Version="7.12.8" />
- <PackageReference Include="FluentAvaloniaUI" Version="1.4.4" />
+ <PackageReference Include="FluentAvaloniaUI" Version="1.4.5" />
<PackageReference Include="XamlNameReferenceGenerator" Version="1.4.2" />
<PackageReference Include="OpenTK.Core" Version="4.7.2" />
diff --git a/Ryujinx.Ava/Ui/Controls/ContentDialogHelper.cs b/Ryujinx.Ava/Ui/Controls/ContentDialogHelper.cs
index 9fcc2d2e..9cf4231c 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