Skip to content

fix: Rotation not applied on preview on initial load - #456

Merged
leolost2605 merged 2 commits into
elementary:mainfrom
flodavid:fix-rotation-not-loaded
Aug 18, 2026
Merged

leolost2605 merged 2 commits into
elementary:mainfrom
flodavid:fix-rotation-not-loaded

Conversation

@flodavid

@flodavid flodavid commented Aug 16, 2026

Copy link
Copy Markdown
Contributor

Fixes #455.
on_vm_transform_changed (); has been removed at the end of DisplayWidget's constructor by #450, when it should have been replaced by a new method to initialize the rotation.

@flodavid
flodavid requested a review from a team August 16, 2026 22:21

@leolost2605 leolost2605 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense but I would make the Gtk.Label a field instead of passing it to the method. Most notably because if it's a local variable using it in a lambda will cause a memory leak.

@flodavid

Copy link
Copy Markdown
Contributor Author

That is good to know, thanks. I hesitated about that anyway so I will apply your suggestion.

@flodavid
flodavid force-pushed the fix-rotation-not-loaded branch from 6721d3f to cb2792a Compare August 17, 2026 15:06
@flodavid
flodavid force-pushed the fix-rotation-not-loaded branch from cb2792a to f85c845 Compare August 17, 2026 15:15
@flodavid

Copy link
Copy Markdown
Contributor Author

It is applied

@flodavid
flodavid requested a review from leolost2605 August 17, 2026 15:17

@leolost2605 leolost2605 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thank you!

@leolost2605
leolost2605 merged commit 9e50d86 into elementary:main Aug 18, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Rotation not applied on preview on initial load

2 participants