You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Issue is that confirmed signal is emitted even if the ConfirmationDialog that appears isn't confirmed (saying that file will be overwritten or that no file name is provided).
Other related issues that may deserve their own tickets is that there doesn't seem to be API to connect to the child ConfirmationDialog buttons (see how it now can be done in the attached project).
And confirmation signal is not being emitted after double clicking on a file name, yet the overwrite ConfirmationDialog does show up.
I guess this all could be categorized as a missing feature, but even if it's not a bug per say it will very likely lead to bugs in user code.
Steps to reproduce
Use the attached reproduction project.
Click the "Save" button.
Either don't select anything and not enter any file name or select any file that is listed.
Confirm the choice.
Look at the Godot editor output log for relevant information.
The print will appear before the choice is confirmed in the popup ConfirmationDialog
Check also the "control.gd" script to get a better picture of what is going on, you can also uncomment there example of how the problem could be solved for now on user side.
You can also double click on any file and observe that nothing is printed at all.
Tested versions
System information
Fedora Linux 39 - Wayland - Godot Engine v4.2.1.stable.official (Vulkan Forward+)
Issue description
Issue is that confirmed signal is emitted even if the ConfirmationDialog that appears isn't confirmed (saying that file will be overwritten or that no file name is provided).
Other related issues that may deserve their own tickets is that there doesn't seem to be API to connect to the child ConfirmationDialog buttons (see how it now can be done in the attached project).
And confirmation signal is not being emitted after double clicking on a file name, yet the overwrite ConfirmationDialog does show up.
I guess this all could be categorized as a missing feature, but even if it's not a bug per say it will very likely lead to bugs in user code.
Steps to reproduce
Use the attached reproduction project.
Click the "Save" button.
Either don't select anything and not enter any file name or select any file that is listed.
Confirm the choice.
Look at the Godot editor output log for relevant information.
The print will appear before the choice is confirmed in the popup ConfirmationDialog
Check also the "control.gd" script to get a better picture of what is going on, you can also uncomment there example of how the problem could be solved for now on user side.
You can also double click on any file and observe that nothing is printed at all.
Minimal reproduction project (MRP)
FileDialogIssues.zip
The text was updated successfully, but these errors were encountered: