98teg / NativeDialogs

Native Dialogs is a plugin for Godot that allows you to interact with OS-specific dialogs, such as notifications, messages and file dialogs.
MIT License
156 stars 8 forks source link

NativeFileDialog should emit a signal when the dialog is closed without selecting anything #12

Closed tonebacas closed 1 year ago

tonebacas commented 1 year ago

There is an unhandled scenario where the user might not select anything when a NativeFileDialog pops up, and instead dismiss it entirely; there is no signal to handle this situation, such that we might respond to it.

For example, it might be relevant to know if the user has opted to save a file when prompted to do so, and in case they dismiss the popup, we might warn them about possible loss of unsaved data.

98teg commented 1 year ago

That's a good point, I would add a cancelled signal to NativeFileDialog.