Skip to content

Commit 5ba42c8

Browse files
Fixes for search.
1 parent 9223ad0 commit 5ba42c8

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/app.rs

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -645,7 +645,7 @@ impl Slot {
645645
.or_insert_with(|| {
646646
config
647647
.data_source
648-
.fetch_slot_meta_tile(&self.entry_id, tile_id, false);
648+
.fetch_slot_meta_tile(&self.entry_id, tile_id, full);
649649
None
650650
})
651651
.as_ref()
@@ -2540,8 +2540,12 @@ impl eframe::App for ProfApp {
25402540
if let Some(entry) = window.find_slot_mut(&tile.entry_id) {
25412541
// If the entry doesn't exist, we already zoomed away and
25422542
// are no longer interested in this tile.
2543-
entry
2544-
.tile_metas
2543+
let metas = if tile.full {
2544+
&mut entry.tile_metas_full
2545+
} else {
2546+
&mut entry.tile_metas
2547+
};
2548+
metas
25452549
.entry(tile.tile_id)
25462550
.and_modify(|t| *t = Some(tile.data));
25472551
}

0 commit comments

Comments
 (0)