mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-08 07:27:29 -06:00
Fix instantiating CloudOutputDeviceManager
This commit is contained in:
parent
2fc5061c41
commit
3e100775df
2 changed files with 5 additions and 5 deletions
|
@ -26,11 +26,11 @@ class CloudOutputDeviceManager(NetworkClient):
|
||||||
# The cloud URL to use for remote clusters.
|
# The cloud URL to use for remote clusters.
|
||||||
API_ROOT_PATH = "https://api.ultimaker.com/connect/v1"
|
API_ROOT_PATH = "https://api.ultimaker.com/connect/v1"
|
||||||
|
|
||||||
def __init__(self, application: "CuraApplication"):
|
def __init__(self):
|
||||||
super().__init__(application)
|
super().__init__()
|
||||||
|
|
||||||
self._output_device_manager = application.getOutputDeviceManager()
|
self._output_device_manager = self._application.getOutputDeviceManager()
|
||||||
self._account = application.getCuraAPI().account
|
self._account = self._application.getCuraAPI().account
|
||||||
|
|
||||||
# Persistent dict containing the remote clusters for the authenticated user.
|
# Persistent dict containing the remote clusters for the authenticated user.
|
||||||
self._remote_clusters = {} # type: Dict[str, CloudOutputDevice]
|
self._remote_clusters = {} # type: Dict[str, CloudOutputDevice]
|
||||||
|
|
|
@ -41,7 +41,7 @@ class UM3OutputDevicePlugin(OutputDevicePlugin):
|
||||||
self._zero_conf_browser = None
|
self._zero_conf_browser = None
|
||||||
|
|
||||||
# Create a cloud output device manager that abstract all cloud connection logic away.
|
# Create a cloud output device manager that abstract all cloud connection logic away.
|
||||||
self._cloud_output_device_manager = CloudOutputDeviceManager(self._application)
|
self._cloud_output_device_manager = CloudOutputDeviceManager()
|
||||||
|
|
||||||
# Because the model needs to be created in the same thread as the QMLEngine, we use a signal.
|
# Because the model needs to be created in the same thread as the QMLEngine, we use a signal.
|
||||||
self.addDeviceSignal.connect(self._onAddDevice)
|
self.addDeviceSignal.connect(self._onAddDevice)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue