This repository was archived by the owner on Aug 26, 2025. It is now read-only.
Repository navigation
how to use #23
Answered
by
Barugon
wanghaisheng
asked this question in
Q&A
how to use
#23
|
this is maybe a dumb question due to my limited knowledge of rust, can you give me some help about use this one |
Answered by
Barugon
Oct 18, 2023
Replies: 1 comment
|
You need something like this in if let Some(dialog) = &mut self.open_file_dialog {
if !dialog.show(ctx).visible() {
if dialog.selected() {
if let Some(path) = dialog.path() {
// Do something with the file path.
...
}
}
self.open_file_dialog = None;
}
}Exampleshttps://github.com/Barugon/cota/blob/3327fba8f673fab8286c9ace0e971126abd91792/src/app.rs#L387 |
0 replies
Answer selected by
Barugon
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You need something like this in
update:Examples
https://github.com/Barugon/cota/blob/3327fba8f673fab8286c9ace0e971126abd91792/src/app.rs#L387
https://github.com/Barugon/fp_app/blob/2bfcd5de4344105a40193b9cc7179066721c89b4/src/app.rs#L425