Преглед изворни кода

Resolve an issue where changes to the main window's positioning could cause the application to crash if a modal was dismissed beforehand. (#6223)

sharmander пре 2 година
родитељ
комит
a37e2d6e44
1 измењених фајлова са 5 додато и 0 уклоњено
  1. 5 0
      src/Ryujinx.Ava/UI/Helpers/ContentDialogHelper.cs

+ 5 - 0
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());
                 }