Clarify documentation of startBackendPlugin function

CURA-10717
This commit is contained in:
Jaime van Kessel 2023-07-11 11:43:15 +02:00
parent bf32b83c82
commit 4aebd755b2
No known key found for this signature in database
GPG key ID: C85F7A3AF1BAA7C4

View file

@ -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: