mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-12 17:27:51 -06:00
Fix an warning when a printer has a timeout before it has been fully discovered
CURA-1851
This commit is contained in:
parent
805c513034
commit
10be9e6674
1 changed files with 2 additions and 0 deletions
|
@ -68,6 +68,8 @@ class NetworkPrinterOutputDevicePlugin(OutputDevicePlugin):
|
||||||
|
|
||||||
## Handler for when the connection state of one of the detected printers changes
|
## Handler for when the connection state of one of the detected printers changes
|
||||||
def _onPrinterConnectionStateChanged(self, key):
|
def _onPrinterConnectionStateChanged(self, key):
|
||||||
|
if key not in self._printers:
|
||||||
|
return
|
||||||
if self._printers[key].isConnected():
|
if self._printers[key].isConnected():
|
||||||
self.getOutputDeviceManager().addOutputDevice(self._printers[key])
|
self.getOutputDeviceManager().addOutputDevice(self._printers[key])
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue