commit 409ca68567bf297e42064e63aadd5d64b71b3991
parent 28634301b858f0e605d2a5f93556e7e76215e9eb
Author: kernelkind <kernelkind@gmail.com>
Date: Tue, 9 Sep 2025 18:39:02 -0400
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 <kernelkind@gmail.com>
Diffstat:
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
@@ -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