mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 14:37:29 -06:00
Clarify documentation of startBackendPlugin function
CURA-10717
This commit is contained in:
parent
bf32b83c82
commit
4aebd755b2
1 changed files with 2 additions and 1 deletions
|
@ -197,6 +197,7 @@ class CuraEngineBackend(QObject, Backend):
|
|||
def startPlugins(self) -> None:
|
||||
"""
|
||||
Ensure that all backend plugins are started
|
||||
It assigns unique ports to each plugin to avoid conflicts.
|
||||
:return:
|
||||
"""
|
||||
backend_plugins = CuraApplication.getInstance().getBackendPlugins()
|
||||
|
@ -205,7 +206,7 @@ class CuraEngineBackend(QObject, Backend):
|
|||
continue
|
||||
# Set the port to prevent plugins from using the same one.
|
||||
backend_plugin.setPort(self._last_backend_plugin_port)
|
||||
self.__last_backend_plugin_port += 1
|
||||
self._last_backend_plugin_port += 1
|
||||
backend_plugin.start()
|
||||
|
||||
def _resetLastSliceTimeStats(self) -> None:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue