mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-20 21:27:50 -06:00
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:
parent
7c810eeca8
commit
4c82098745
2 changed files with 2 additions and 0 deletions
|
@ -16,6 +16,7 @@ class BackendPlugin(AdditionalSettingDefinitionsAppender):
|
||||||
self._process = None
|
self._process = None
|
||||||
self._is_running = False
|
self._is_running = False
|
||||||
self._supported_slots: List[int] = []
|
self._supported_slots: List[int] = []
|
||||||
|
self.appender_type = "PLUGIN"
|
||||||
|
|
||||||
def getSupportedSlots(self) -> List[int]:
|
def getSupportedSlots(self) -> List[int]:
|
||||||
return self._supported_slots
|
return self._supported_slots
|
||||||
|
|
|
@ -1745,6 +1745,7 @@ class CuraApplication(QtApplication):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def _addBackendPlugin(self, backend_plugin: "BackendPlugin") -> None:
|
def _addBackendPlugin(self, backend_plugin: "BackendPlugin") -> None:
|
||||||
|
self._container_registry.addAdditionalSettingDefinitionsAppender(backend_plugin)
|
||||||
self._backend_plugins.append(backend_plugin)
|
self._backend_plugins.append(backend_plugin)
|
||||||
|
|
||||||
def getBackendPlugins(self) -> List["BackendPlugin"]:
|
def getBackendPlugins(self) -> List["BackendPlugin"]:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue