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
Hi! This library is awesome (including compared to other EGUI file dialogs I've seen).
I notice that the save dialog looks like this:
Is there a way to A: Give it a default filename and extension, and B: Offer an extension filter/automatic extension if not entered, like in open, and system file dialogs? Thank you!
Example of desired behavior, from a system dialog:
The text was updated successfully, but these errors were encountered:
Hi, you can use FileDialog::default_file_name to set the default name of the file when saving.
Point B is not yet implemented. But I think it's a good idea. I'll mark the ticket as an enhancement. But I don't have time to implement the feature in the next few weeks.
Ty! That worked for A! I'll take a look as well re point B, although am not familiar with this codebase at this time.
edit: Is there a way to do A dynamically? I was able to get it to work when initializing, but is there a non-builder-pattern approach, or a way to use the builder pattern here? (This may be something I can easily PR A/R)
*dialog = dialog.default_file_name(&filename);
| ^^^^^^ move occurs because `*dialog` has type `FileDialog`, which does not implement the `Copy` trait
I guess, something like dialog.set_default_name(&filename) would do it, where it mutates itself instead of returning a new copy. Or maybe there is a way to do that using the builder pattern. edit: PR in; verified working.
Hi! This library is awesome (including compared to other EGUI file dialogs I've seen).
I notice that the save dialog looks like this:
Is there a way to A: Give it a default filename and extension, and B: Offer an extension filter/automatic extension if not entered, like in open, and system file dialogs? Thank you!
Example of desired behavior, from a system dialog:
The text was updated successfully, but these errors were encountered: