Improve file pick label
This commit is contained in:
parent
ccb46ce1ea
commit
409bcfb768
1 changed files with 5 additions and 1 deletions
|
|
@ -77,7 +77,11 @@ impl eframe::App for UIApp {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Displaying the picked file path
|
// Displaying the picked file path
|
||||||
ui.label(format!("Picked file: {:?}", self.picked_file));
|
let picked_file_label = match &self.picked_file {
|
||||||
|
Some(path) => format!("Picked file: {:?}", path),
|
||||||
|
None => "No file picked".to_owned(),
|
||||||
|
};
|
||||||
|
ui.label(picked_file_label);
|
||||||
|
|
||||||
ui.add_space(25.0); // Adding space in the UI
|
ui.add_space(25.0); // Adding space in the UI
|
||||||
ui.separator(); // Adding a separator line
|
ui.separator(); // Adding a separator line
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue