This commit is contained in:
Jeremy Soller 2025-03-03 13:04:50 -07:00
parent 3ed7c47c8a
commit 1880d0a270
No known key found for this signature in database
GPG key ID: 670FDFB5428E05CA
2 changed files with 24 additions and 12 deletions

View file

@ -482,7 +482,11 @@ impl App {
if let Some(items) = self.tab.items_opt() {
for item in items.iter() {
if item.location_opt.as_ref() == Some(location) {
children.push(item.preview_view(None, self.tab.config.icon_sizes, military_time));
children.push(item.preview_view(
None,
self.tab.config.icon_sizes,
military_time,
));
// Only show one property view to avoid issues like hangs when generating
// preview images on thousands of files
break;
@ -494,7 +498,11 @@ impl App {
if let Some(items) = self.tab.items_opt() {
for item in items.iter() {
if item.selected {
children.push(item.preview_view(None, self.tab.config.icon_sizes, military_time));
children.push(item.preview_view(
None,
self.tab.config.icon_sizes,
military_time,
));
// Only show one property view to avoid issues like hangs when generating
// preview images on thousands of files
break;
@ -502,7 +510,11 @@ impl App {
}
if children.is_empty() {
if let Some(item) = &self.tab.parent_item_opt {
children.push(item.preview_view(None, self.tab.config.icon_sizes, military_time));
children.push(item.preview_view(
None,
self.tab.config.icon_sizes,
military_time,
));
}
}
}