Add thumbnailing
This commit is contained in:
parent
f38ce15bf9
commit
9905af8f6f
5 changed files with 166 additions and 43 deletions
13
src/app.rs
13
src/app.rs
|
|
@ -359,6 +359,9 @@ impl App {
|
|||
for item in items.iter() {
|
||||
if item.selected {
|
||||
children.push(item.property_view(&self.core, tab.config.icon_sizes));
|
||||
// Only show one property view to avoid issues like hangs when generating
|
||||
// preview images on thousands of files
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1158,6 +1161,16 @@ impl Application for App {
|
|||
));
|
||||
}
|
||||
|
||||
for entity in self.tab_model.iter() {
|
||||
if let Some(tab) = self.tab_model.data::<Tab>(entity) {
|
||||
subscriptions.push(
|
||||
tab.subscription()
|
||||
.with(entity)
|
||||
.map(|(entity, tab_msg)| Message::TabMessage(Some(entity), tab_msg)),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Subscription::batch(subscriptions)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue