Skip to content

Conversation

@dhiraj-143r
Copy link

Closes #3381

This PR fixes issue #3381, where hiding/unhiding a layer did not always update the document's saved state correctly.

The issue was that the ToggleSelectedVisibility action did not start a transaction.

@Keavon Keavon changed the title Add missing StartTransaction for ToggleSelectedVisibility (#3381) Add missing StartTransaction for ToggleSelectedVisibility Nov 15, 2025
@TrueDoctor
Copy link
Member

!build

@github-actions
Copy link

📦 Build Complete for 7f7858b
https://a5bb6400.graphite.pages.dev

@TrueDoctor
Copy link
Member

This only seems to work if I hide the layer and then also select it, can you please double-check if the solution you implemented works on your end and addresses the original issues? We will look at the code once the functionality is complete

@Keavon Keavon marked this pull request as draft November 19, 2025 21:51
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.

Hiding layer on new document can lead to incorrect saved state

2 participants