Improve file pick label

This commit is contained in:
Silvio Braendle 2025-01-27 13:39:51 +01:00
parent ccb46ce1ea
commit 409bcfb768
No known key found for this signature in database
GPG key ID: 553A5A37BA69D8AE

View file

@ -77,7 +77,11 @@ impl eframe::App for UIApp {
}
// 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.separator(); // Adding a separator line