Backend-plugins don't have to register separately for extra setting-defs.

Also they now have their own appender-type (previously it was _always_ 'PLUGIN', now the other plugins are 'EXTRA').

part of CURA-10722
This commit is contained in:
Remco Burema 2023-07-28 15:13:48 +02:00
parent 7c810eeca8
commit 4c82098745
2 changed files with 2 additions and 0 deletions

View file

@ -16,6 +16,7 @@ class BackendPlugin(AdditionalSettingDefinitionsAppender):
self._process = None
self._is_running = False
self._supported_slots: List[int] = []
self.appender_type = "PLUGIN"
def getSupportedSlots(self) -> List[int]:
return self._supported_slots

View file

@ -1745,6 +1745,7 @@ class CuraApplication(QtApplication):
pass
def _addBackendPlugin(self, backend_plugin: "BackendPlugin") -> None:
self._container_registry.addAdditionalSettingDefinitionsAppender(backend_plugin)
self._backend_plugins.append(backend_plugin)
def getBackendPlugins(self) -> List["BackendPlugin"]: