From 4786a32c9f61d5a9d08def96363bd9dba9639519 Mon Sep 17 00:00:00 2001 From: Emmanouil Papadeas <35376950+OverloadedOrama@users.noreply.github.com> Date: Fri, 14 Feb 2025 15:26:37 +0200 Subject: [PATCH] Fix export dialog filedialog and add extensions filedialog dropdowns being shown behind the windows themselves Fixes #1176 --- src/Preferences/ExtensionsPreferences.gd | 5 +++++ src/UI/Dialogs/ExportDialog.gd | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/Preferences/ExtensionsPreferences.gd b/src/Preferences/ExtensionsPreferences.gd index 3023d78e7..8084801f8 100644 --- a/src/Preferences/ExtensionsPreferences.gd +++ b/src/Preferences/ExtensionsPreferences.gd @@ -21,6 +21,11 @@ func _ready() -> void: if OS.get_name() == "Web": $HBoxContainer/AddExtensionButton.disabled = true $HBoxContainer/OpenFolderButton.visible = false + else: + # TODO: Remove the loop when https://github.com/godotengine/godot/issues/92848 gets fixed. + for dialog_child in add_extension_file_dialog.find_children("", "Window", true, false): + if dialog_child is Window: + dialog_child.always_on_top = add_extension_file_dialog.always_on_top func _extension_loaded(extension: Extensions.Extension, extension_name: String) -> void: diff --git a/src/UI/Dialogs/ExportDialog.gd b/src/UI/Dialogs/ExportDialog.gd index a0f8ace79..f5510659e 100644 --- a/src/UI/Dialogs/ExportDialog.gd +++ b/src/UI/Dialogs/ExportDialog.gd @@ -64,7 +64,7 @@ func _ready() -> void: file_exists_alert_popup.add_button("Cancel Export", false, "cancel") # TODO: Remove the loop when https://github.com/godotengine/godot/issues/92848 gets fixed. - for dialog_child in path_dialog_popup.get_children(true): + for dialog_child in path_dialog_popup.find_children("", "Window", true, false): if dialog_child is Window: dialog_child.always_on_top = path_dialog_popup.always_on_top