Skip to content

Fix setter decorator for project property - #8362

Merged
emesare merged 1 commit into
Vector35:devfrom
owah:patch-1
Jul 28, 2026
Merged

Fix setter decorator for project property#8362
emesare merged 1 commit into
Vector35:devfrom
owah:patch-1

Conversation

@owah

@owah owah commented Jul 25, 2026

Copy link
Copy Markdown
Contributor

PluginCommandContext.project's setter is decorated with @function.setter instead of @project.setter. Because @x.setter returns a new property built from x, this attaches the new setter to the function property while keeping its original getter, and binds the whole thing to the name project. The result: context.project reads back self._function instead of self._project.

`PluginCommandContext.project`'s setter is decorated with `@function.setter`
instead of `@project.setter`. Because `@x.setter` returns a new property
built from `x`, this attaches the new setter to the *function* property
while keeping its original getter, and binds the whole thing to the name
`project`. The result: `context.project` reads back `self._function`
instead of `self._project`.
Copilot AI review requested due to automatic review settings July 25, 2026 16:51

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR corrects the PluginCommandContext.project property setter decorator so that assignments to context.project update and subsequently read back self._project (rather than accidentally binding to the function property and reading self._function).

Changes:

  • Fix PluginCommandContext.project setter to use @project.setter instead of @function.setter.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@plafosse

Copy link
Copy Markdown
Member

Thanks for the fix!

@plafosse
plafosse requested a review from emesare July 28, 2026 14:41
@emesare
emesare merged commit 6f8ff5a into Vector35:dev Jul 28, 2026
1 check 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.

4 participants