mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 13:46:01 +08:00
Fix typo and white space
Contributes to CL-1331
This commit is contained in:
parent
df6898ae45
commit
8b25816b1b
@ -167,8 +167,9 @@ class UM3OutputDevicePlugin(OutputDevicePlugin):
|
|||||||
for address in self._manual_instances:
|
for address in self._manual_instances:
|
||||||
if address:
|
if address:
|
||||||
self.addManualDevice(address)
|
self.addManualDevice(address)
|
||||||
self.resetLastManualDevice()
|
self.resetLastManu
|
||||||
|
|
||||||
|
# TODO: CHANGE TO HOSTNAME
|
||||||
def refreshConnections(self):
|
def refreshConnections(self):
|
||||||
active_machine = self._application.getGlobalContainerStack()
|
active_machine = self._application.getGlobalContainerStack()
|
||||||
if not active_machine:
|
if not active_machine:
|
||||||
@ -272,8 +273,10 @@ class UM3OutputDevicePlugin(OutputDevicePlugin):
|
|||||||
key, group_name, machine_type_id)
|
key, group_name, machine_type_id)
|
||||||
|
|
||||||
self._application.getMachineManager().addMachine(machine_type_id, group_name)
|
self._application.getMachineManager().addMachine(machine_type_id, group_name)
|
||||||
|
|
||||||
# connect the new machine to that network printer
|
# connect the new machine to that network printer
|
||||||
self._api.machines.addOutputDeviceToCurrentMachine(discovered_device)
|
self._api.machines.addOutputDeviceToCurrentMachine(discovered_device)
|
||||||
|
|
||||||
# ensure that the connection states are refreshed.
|
# ensure that the connection states are refreshed.
|
||||||
self.refreshConnections()
|
self.refreshConnections()
|
||||||
|
|
||||||
@ -285,6 +288,7 @@ class UM3OutputDevicePlugin(OutputDevicePlugin):
|
|||||||
name_request = QNetworkRequest(url)
|
name_request = QNetworkRequest(url)
|
||||||
return self._network_manager.get(name_request)
|
return self._network_manager.get(name_request)
|
||||||
|
|
||||||
|
## This is the function which handles the above network request's reply when it comes back.
|
||||||
def _onNetworkRequestFinished(self, reply: "QNetworkReply") -> None:
|
def _onNetworkRequestFinished(self, reply: "QNetworkReply") -> None:
|
||||||
reply_url = reply.url().toString()
|
reply_url = reply.url().toString()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user