mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 06:57:28 -06:00
test
This commit is contained in:
parent
21c81603b4
commit
014b1d6e4e
2 changed files with 7 additions and 5 deletions
|
@ -182,8 +182,10 @@ class NetworkedPrinterOutputDevice(PrinterOutputDevice, NetworkClient):
|
|||
return self._address
|
||||
|
||||
def __handleOnFinished(self, reply: QNetworkReply) -> None:
|
||||
super().__handleOnFinished(reply)
|
||||
|
||||
# Since we got a reply from the network manager we can now be sure we are actually connected.
|
||||
if self._connection_state == ConnectionState.connecting:
|
||||
# Since we got a 200 reply from the network manager we can now be sure we are actually connected.
|
||||
if reply.attribute(QNetworkRequest.HttpStatusCodeAttribute) == 200 and \
|
||||
self._connection_state == ConnectionState.connecting:
|
||||
self.setConnectionState(ConnectionState.connected)
|
||||
|
||||
super().__handleOnFinished(reply)
|
||||
|
|
|
@ -41,7 +41,7 @@ class UM3OutputDevicePlugin(OutputDevicePlugin):
|
|||
self._zero_conf_browser = None
|
||||
|
||||
# Create a cloud output device manager that abstract all cloud connection logic away.
|
||||
self._cloud_output_device_manager = CloudOutputDeviceManager()
|
||||
# self._cloud_output_device_manager = CloudOutputDeviceManager()
|
||||
|
||||
# Because the model needs to be created in the same thread as the QMLEngine, we use a signal.
|
||||
self.addDeviceSignal.connect(self._onAddDevice)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue