mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 15:07:28 -06:00
Send slotID's for backend_plugins
CURA-10717
This commit is contained in:
parent
4aebd755b2
commit
3037320b03
2 changed files with 20 additions and 0 deletions
|
@ -15,6 +15,10 @@ class BackendPlugin(PluginObject):
|
|||
self._plugin_command: Optional[List[str]] = None
|
||||
self._process = None
|
||||
self._is_running = False
|
||||
self._supported_slots: List[int] = []
|
||||
|
||||
def getSupportedSlots(self) -> List[int]:
|
||||
return self._supported_slots
|
||||
|
||||
def isRunning(self):
|
||||
return self._is_running
|
||||
|
@ -25,6 +29,9 @@ class BackendPlugin(PluginObject):
|
|||
def getPort(self) -> int:
|
||||
return self.__port
|
||||
|
||||
def getAddress(self) -> str:
|
||||
return self._plugin_address
|
||||
|
||||
def _validatePluginCommand(self) -> list[str]:
|
||||
"""
|
||||
Validate the plugin command and add the port parameter if it is missing.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue