Probably misusing rfd

⚓ Rust    📅 2026-03-15    👤 surdeus    👁️ 3      

surdeus

Info

This post is auto-generated from RSS feed The Rust Programming Language Forum - Latest topics. Source: Probably misusing rfd

I create an rfd::FileDialog object, and then clone it to load from / save to a file. Using it to load works fine. Using it to save, if I enter a new filename to save to, it works fine. But if I select an existing file, and then hit the save button, the file name is highlighted, but then everything seems to hang. Am I misunderstanding rfd::FileDialog.save_file()?

self.file_path = self.file_dialog.clone().save_file();

I have println! in both branches of the if let that tests if save_file returned Some(...). Nothing prints.
Thanks,
Joel

1 post - 1 participant

Read full topic

🏷️ Rust_feed