diff --git a/src/SharpIDE.Godot/Features/SlnPicker/SlnPicker.cs b/src/SharpIDE.Godot/Features/SlnPicker/SlnPicker.cs index 82b864f..f48666b 100644 --- a/src/SharpIDE.Godot/Features/SlnPicker/SlnPicker.cs +++ b/src/SharpIDE.Godot/Features/SlnPicker/SlnPicker.cs @@ -10,6 +10,11 @@ public partial class SlnPicker : Control private readonly TaskCompletionSource _tcs = new TaskCompletionSource(TaskCreationOptions.RunContinuationsAsynchronously); + public override void _ExitTree() + { + if (!_tcs.Task.IsCompleted) _tcs.SetResult(null); + } + public override void _Ready() { _fileDialog = GetNode("%FileDialog");