Pligins refactor with new context and controller integration

This commit is contained in:
2026-01-18 20:33:49 -06:00
parent e2f29207ba
commit b8ce6e160a
13 changed files with 181 additions and 248 deletions

View File

@@ -0,0 +1,19 @@
# Python imports
# Lib imports
# Application imports
class PluginsControllerMixin:
def requests_ui_element(self, target_id: str):
builder = settings_manager.get_builder()
ui_target = builder.get_object(target_id)
if not ui_target:
raise InvalidPluginException('Unknown "target_id" given in requests.')
return ui_target