From 171889b3aa42bfdb836aafaa54f0ead7697fa307 Mon Sep 17 00:00:00 2001 From: kernelkind Date: Wed, 25 Sep 2024 13:13:59 -0400 Subject: [PATCH] process 'more options' for previews forgot to add this part Signed-off-by: kernelkind --- src/ui/note/contents.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/ui/note/contents.rs b/src/ui/note/contents.rs index e48aa48..327b9bd 100644 --- a/src/ui/note/contents.rs +++ b/src/ui/note/contents.rs @@ -1,5 +1,6 @@ use crate::images::ImageType; use crate::imgcache::ImageCache; +use crate::note_options::process_note_selection; use crate::notecache::NoteCache; use crate::ui::note::NoteOptions; use crate::ui::ProfilePic; @@ -103,13 +104,15 @@ pub fn render_note_preview( ui.visuals().noninteractive().bg_stroke.color, )) .show(ui, |ui| { - ui::NoteView::new(ndb, note_cache, img_cache, ¬e) + let resp = ui::NoteView::new(ndb, note_cache, img_cache, ¬e) .actionbar(false) .small_pfp(true) .wide(true) .note_previews(false) .use_more_options_button(true) .show(ui); + + process_note_selection(ui, resp.option_selection, ¬e); }) .response }