Skip to content

Commit 65f6d6f

Browse files
committed
[File browser] Update for libgui API change
1 parent 0d9677f commit 65f6d6f

File tree

1 file changed

+1
-1
lines changed
  • rust_programs/file_browser/src

1 file changed

+1
-1
lines changed

rust_programs/file_browser/src/main.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -189,9 +189,9 @@ impl DirectoryEntryView {
189189
};
190190
let label_text = format!("{entry_name}{label_suffix}");
191191
let name_label = Rc::new(Label::new(
192-
Rect::from_parts(Point::new(10, 10), Size::new(300, height)),
193192
&label_text,
194193
Color::new(30, 30, 30),
194+
move |_, _| Rect::from_parts(Point::new(10, 10), Size::new(300, height)),
195195
));
196196
// TODO(PT): Set font size as attribute?
197197
Rc::clone(&view).add_component(name_label);

0 commit comments

Comments
 (0)