Merge pull request #83809 from raulsntos/dotnet/free-dialogs

C#: Free dialogs when exiting the editor
This commit is contained in:
Rémi Verschelde 2023-10-30 16:26:15 +01:00
commit 67941551ca
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -626,6 +626,12 @@ namespace GodotTools
_editorSettings.SettingsChanged -= OnSettingsChanged;
}
public override void _ExitTree()
{
_errorDialog?.QueueFree();
_confirmCreateSlnDialog?.QueueFree();
}
private void OnSettingsChanged()
{
// We want to force NoConsoleLogging to true when the VerbosityLevel is at Detailed or above.