diff options
author | sharmander <saldabain.dev@gmail.com> | 2024-02-06 09:05:32 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-06 18:05:32 +0100 |
commit | a37e2d6e44c7f384f26062dea5599749c7c60623 (patch) | |
tree | 907364ba485224e18627363b7e0d3e0477f63fb0 | |
parent | 25123232bd7186d8009332f67124a5991f2a978d (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.cs | 5 |
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()); } |