From 409ca68567bf297e42064e63aadd5d64b71b3991 Mon Sep 17 00:00:00 2001 From: kernelkind Date: Tue, 9 Sep 2025 18:39:02 -0400 Subject: [PATCH] fix: can upload photo from reply or quote moved the file retrieval check from `PostView::ui` -> `PostView::ui_no_scroll`, which is used by the `PostReplyView` & `QuoteRepostView` Signed-off-by: kernelkind --- crates/notedeck_columns/src/ui/note/post.rs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/crates/notedeck_columns/src/ui/note/post.rs b/crates/notedeck_columns/src/ui/note/post.rs index 8e15ea9b..67bea945 100644 --- a/crates/notedeck_columns/src/ui/note/post.rs +++ b/crates/notedeck_columns/src/ui/note/post.rs @@ -342,6 +342,13 @@ impl<'a, 'd> PostView<'a, 'd> { } pub fn ui(&mut self, txn: &Transaction, ui: &mut egui::Ui) -> PostResponse { + ScrollArea::vertical() + .id_salt(PostView::scroll_id()) + .show(ui, |ui| self.ui_no_scroll(txn, ui)) + .inner + } + + pub fn ui_no_scroll(&mut self, txn: &Transaction, ui: &mut egui::Ui) -> PostResponse { while let Some(selected_file) = get_next_selected_file() { match selected_file { Ok(selected_media) => { @@ -358,13 +365,6 @@ impl<'a, 'd> PostView<'a, 'd> { } } - ScrollArea::vertical() - .id_salt(PostView::scroll_id()) - .show(ui, |ui| self.ui_no_scroll(txn, ui)) - .inner - } - - pub fn ui_no_scroll(&mut self, txn: &Transaction, ui: &mut egui::Ui) -> PostResponse { let focused = self.focused(ui); let stroke = if focused { ui.visuals().selection.stroke