From 890e56355a3791d6009b6e25f52ab25c8c95de5e Mon Sep 17 00:00:00 2001 From: owah <4345945+owah@users.noreply.github.com> Date: Sat, 25 Jul 2026 18:50:24 +0200 Subject: [PATCH] Fix setter decorator for project property `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`. --- python/plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/plugin.py b/python/plugin.py index b7a01d5d61..58b5e6f198 100644 --- a/python/plugin.py +++ b/python/plugin.py @@ -105,7 +105,7 @@ def instruction(self, value): def project(self): return self._project - @function.setter + @project.setter def project(self, value): self._project = value