From dcaf46c36a0d4bfd63e86245636a6d76653d5876 Mon Sep 17 00:00:00 2001 From: Snowdaw <86071208+Snowdaw@users.noreply.github.com> Date: Tue, 8 Oct 2024 16:37:08 +0200 Subject: [PATCH] Fix missing dialog on invalid export template file This fixes the empty dialog box when trying to install invalid export templates files. --- editor/export/export_template_manager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor/export/export_template_manager.cpp b/editor/export/export_template_manager.cpp index 5360b6fb60c..fedb77e97f1 100644 --- a/editor/export/export_template_manager.cpp +++ b/editor/export/export_template_manager.cpp @@ -1104,7 +1104,7 @@ ExportTemplateManager::ExportTemplateManager() { install_file_dialog->set_file_mode(FileDialog::FILE_MODE_OPEN_FILE); install_file_dialog->set_current_dir(EDITOR_DEF("_export_template_download_directory", "")); install_file_dialog->add_filter("*.tpz", TTR("Godot Export Templates")); - install_file_dialog->connect("file_selected", callable_mp(this, &ExportTemplateManager::_install_file_selected).bind(false)); + install_file_dialog->connect("file_selected", callable_mp(this, &ExportTemplateManager::_install_file_selected).bind(false), CONNECT_DEFERRED); add_child(install_file_dialog); hide_dialog_accept = memnew(AcceptDialog);