Skip to content

Commit 0ea3511

Browse files
committed
add CloseRequested before AddChild
1 parent db7dd4c commit 0ea3511

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/SharpIDE.Godot/IdeWindow.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,12 +80,12 @@ public void PickSolution(bool fullscreen = false)
8080
var windowSize = GetWindow().GetSize();
8181
popupWindow.Size = windowSize with { X = windowSize.X / 2, Y = windowSize.Y / 2 };
8282
popupWindow.Title = "Open Solution";
83-
popupWindow.AddChild(_slnPicker);
84-
popupWindow.Popup();
8583
popupWindow.CloseRequested += () =>
8684
{
8785
popupWindow.Hide();
8886
};
87+
popupWindow.AddChild(_slnPicker);
88+
popupWindow.Popup();
8989
}
9090
_ = Task.GodotRun(async () =>
9191
{

0 commit comments

Comments
 (0)