aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsharmander <saldabain.dev@gmail.com>2024-02-06 09:05:32 -0800
committerGitHub <noreply@github.com>2024-02-06 18:05:32 +0100
commita37e2d6e44c7f384f26062dea5599749c7c60623 (patch)
tree907364ba485224e18627363b7e0d3e0477f63fb0
parent25123232bd7186d8009332f67124a5991f2a978d (diff)
Resolve an issue where changes to the main window's positioning could cause the application to crash if a modal was dismissed beforehand. (#6223)1.1.1161
-rw-r--r--src/Ryujinx.Ava/UI/Helpers/ContentDialogHelper.cs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/Ryujinx.Ava/UI/Helpers/ContentDialogHelper.cs b/src/Ryujinx.Ava/UI/Helpers/ContentDialogHelper.cs
index 0863cbaa..b9d919f9 100644
--- a/src/Ryujinx.Ava/UI/Helpers/ContentDialogHelper.cs
+++ b/src/Ryujinx.Ava/UI/Helpers/ContentDialogHelper.cs
@@ -336,6 +336,11 @@ namespace Ryujinx.Ava.UI.Helpers
void OverlayOnPositionChanged(object sender, PixelPointEventArgs e)
{
+ if (_contentDialogOverlayWindow is null)
+ {
+ return;
+ }
+
_contentDialogOverlayWindow.Position = parent.PointToScreen(new Point());
}