Skip to content

Conversation

@Annonnymmousss
Copy link
Contributor

@Annonnymmousss Annonnymmousss commented Dec 19, 2025

fix the issue by updating the state of menu bar as the state of path tool changes

code todo - https://discord.com/channels/731730685944922173/881073965047636018/1415971652470181984

solved.mov


shape_editor.set_selected_layers(target_layers);

responses.add(MenuBarMessage::SendLayout);
Copy link
Member

Choose a reason for hiding this comment

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

In both of these calls, MenuBarMessage::SendLayout is expensive. Can you find a way to check if a re-send is necessary before making the call, so it's conditional instead of always?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ya sure
we can add the condition whether the state is changed or not before calling these that would be better.

Copy link
Member

Choose a reason for hiding this comment

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

Yes, that would be ideal.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

i have added the check is it fine now?

Copy link
Member

Choose a reason for hiding this comment

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

I think you made a mistake in the lower of the two code change areas?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ya shit i forgot to apply the check

Copy link
Contributor Author

Choose a reason for hiding this comment

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

also SelectionChanged does not need to store the state so removed that too

@Keavon Keavon force-pushed the fix-make_path_editable-sync branch from 4e0071b to d4ba255 Compare December 20, 2025 10:59
@Keavon
Copy link
Member

Keavon commented Dec 20, 2025

!build

@github-actions
Copy link

📦 Build Complete for d4ba255
https://77d034e7.graphite.pages.dev

@Keavon Keavon changed the title fix : sync the make path editable option Fix disabled state of Layer > Make Path Editable menu action getting out of sync Dec 20, 2025
@Keavon
Copy link
Member

Keavon commented Dec 20, 2025

You will need to set up your code editor to auto format on save to ensure you never push code with noncompliant formatting. Please resolve that on your end and push the change so CI passes. Thanks.

@Annonnymmousss
Copy link
Contributor Author

default formatter only or any specific style?

@Keavon
Copy link
Member

Keavon commented Dec 20, 2025

@Annonnymmousss
Copy link
Contributor Author

yeah done will keep this is mind

@Keavon Keavon merged commit d16fd46 into GraphiteEditor:master Dec 21, 2025
3 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.

2 participants