From f3d267bed2fbe53b486314828c60a92d89c81de0 Mon Sep 17 00:00:00 2001 From: Sara Date: Mon, 3 Nov 2025 18:05:42 +0100 Subject: [PATCH] fix: photo resets rotation and goes to front on pickup --- modules/you_done_it/pinned_photo.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/you_done_it/pinned_photo.cpp b/modules/you_done_it/pinned_photo.cpp index c49dc061..7db7bab2 100644 --- a/modules/you_done_it/pinned_photo.cpp +++ b/modules/you_done_it/pinned_photo.cpp @@ -46,7 +46,9 @@ void PinnedPhoto::on_input_event(Viewport *viewport, Ref event, int this->conclusion_field->notify_photo_picked(this); this->conclusion_field = nullptr; } - this->popup_container->set_visible(true); + set_global_rotation(0); + this->popup_container->set_visible(!this->popup_label->get_text().is_empty()); + this->get_parent()->move_child(this, this->get_parent()->get_child_count() - 1); } }