Pligins refactor with new context and controller integration

This commit is contained in:
2026-01-18 20:34:05 -06:00
parent d55dd4e5da
commit dac0fa3fb1
9 changed files with 171 additions and 170 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