Skip to content
This repository has been archived by the owner on Apr 10, 2024. It is now read-only.

Commit

Permalink
Disabled path box.
Browse files Browse the repository at this point in the history
It's just for the info.
  • Loading branch information
mkrueger committed Aug 28, 2023
1 parent 66adf7d commit 45b80f4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ui/file_view.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,9 @@ impl FileView {
match self.path.to_str() {
Some(path) => {
let mut path_edit = path.to_string();
let _response =
ui.add_enabled_ui(false, |ui| {
ui.add_sized([250.0, 20.0], TextEdit::singleline(&mut path_edit));
});
}
None => {
ui.colored_label(ui.style().visuals.error_fg_color, "Invalid path");
Expand Down

0 comments on commit 45b80f4

Please sign in to comment.