mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-09 07:56:22 -06:00
Make sure the unsuccessful manual device gets removed
CURA-6057
This commit is contained in:
parent
5cce4cd4cd
commit
086ae1c735
1 changed files with 3 additions and 2 deletions
|
@ -286,7 +286,7 @@ class UM3OutputDevicePlugin(OutputDevicePlugin):
|
|||
|
||||
self.refreshConnections()
|
||||
|
||||
def _checkManualDevice(self, address):
|
||||
def _checkManualDevice(self, address: str) -> None:
|
||||
# Check if a UM3 family device exists at this address.
|
||||
# If a printer responds, it will replace the preliminary printer created above
|
||||
# origin=manual is for tracking back the origin of the call
|
||||
|
@ -307,7 +307,8 @@ class UM3OutputDevicePlugin(OutputDevicePlugin):
|
|||
# - Something went wrong with checking the amount of printers the cluster has!
|
||||
# - Couldn't find printer at the address when trying to add it manually.
|
||||
if address in self._manual_instances:
|
||||
self.removeManualDeviceSignal.emit(self.getPluginId(), "", address)
|
||||
key = "manual:" + address
|
||||
self.removeManualDevice(key, address)
|
||||
return
|
||||
|
||||
if "system" in reply_url:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue