1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-02-20 20:43:14 +00:00

Fix export dialog filedialog and add extensions filedialog dropdowns being shown behind the windows themselves

Fixes #1176
This commit is contained in:
Emmanouil Papadeas 2025-02-14 15:26:37 +02:00
parent 5baf03582a
commit 4786a32c9f
2 changed files with 6 additions and 1 deletions

View file

@ -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:

View file

@ -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