mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-07-26 04:14:25 +08:00
Clarify documentation of startBackendPlugin function
CURA-10717
This commit is contained in:
parent
bf32b83c82
commit
4aebd755b2
@ -197,6 +197,7 @@ class CuraEngineBackend(QObject, Backend):
|
|||||||
def startPlugins(self) -> None:
|
def startPlugins(self) -> None:
|
||||||
"""
|
"""
|
||||||
Ensure that all backend plugins are started
|
Ensure that all backend plugins are started
|
||||||
|
It assigns unique ports to each plugin to avoid conflicts.
|
||||||
:return:
|
:return:
|
||||||
"""
|
"""
|
||||||
backend_plugins = CuraApplication.getInstance().getBackendPlugins()
|
backend_plugins = CuraApplication.getInstance().getBackendPlugins()
|
||||||
@ -205,7 +206,7 @@ class CuraEngineBackend(QObject, Backend):
|
|||||||
continue
|
continue
|
||||||
# Set the port to prevent plugins from using the same one.
|
# Set the port to prevent plugins from using the same one.
|
||||||
backend_plugin.setPort(self._last_backend_plugin_port)
|
backend_plugin.setPort(self._last_backend_plugin_port)
|
||||||
self.__last_backend_plugin_port += 1
|
self._last_backend_plugin_port += 1
|
||||||
backend_plugin.start()
|
backend_plugin.start()
|
||||||
|
|
||||||
def _resetLastSliceTimeStats(self) -> None:
|
def _resetLastSliceTimeStats(self) -> None:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user