-
I can't find any API of iced to reach this goal, I'm using Windows, I want to code a tool which has a function to choose a local file in my computer, just like I click a button then a dialog pops up to show me the file explorer |
Beta Was this translation helpful? Give feedback.
Answered by
13r0ck
Jan 15, 2023
Replies: 1 comment 1 reply
-
Use the rfd async api, and use a command to await |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
kznr02
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://crates.io/crates/rfd
Use the rfd async api, and use a command to await
AsyncFileDialog::new().pick_file()
and then return whatever you want from the file to your application.