C#: Free dialogs when exiting the editor

This commit is contained in:
Raul Santos 2023-10-23 02:10:06 +02:00
parent f8818f85e6
commit 48edcc3b34
No known key found for this signature in database
GPG key ID: B532473AE3A803E4

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.