Skip to content

Commit

Permalink
Fix texture previews in interactive traversal
Browse files Browse the repository at this point in the history
  • Loading branch information
cohaereo committed Mar 24, 2024
1 parent 1a4d9a1 commit 275decc
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/gui/tag.rs
Original file line number Diff line number Diff line change
Expand Up @@ -288,10 +288,11 @@ impl TagView {
ui.style_mut().spacing.indent = 16.0;
if traversed.subtags.is_empty() {
ui.horizontal(|ui| {
let response =
ui.add_enabled(depth > 0, egui::SelectableLabel::new(false, tag_label));

if response.clicked() {
if ui
.add_enabled(depth > 0, egui::SelectableLabel::new(false, tag_label))
.tag_context_with_texture(traversed.tag, None, &self.texture_cache, is_texture)
.clicked()
{
open_new_tag = Some(traversed.tag);
}
});
Expand Down

0 comments on commit 275decc

Please sign in to comment.