Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added &mut option for def file #139

Closed

Conversation

David-OConnor
Copy link

@David-OConnor David-OConnor commented Aug 10, 2024

#138

I have found this necessary to set the default file name dynamically, in practice.

@fluxxcode
Copy link
Owner

Hi, thanks for the PR.

The default file name should be able to be dynamically adjusted via config_mut. Here is an example:

let mut file_dialog = FileDialog::new().default_file_name("some_file.txt");

file_dialog.config_mut().default_file_name = "some_other_file.txt";

Let me know if it works for you!

@David-OConnor
Copy link
Author

I can confirm that works. Closing; ty!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants