Merge branch 'master' of github.com:Ultimaker/Cura

This commit is contained in:
Jaime van Kessel 2017-06-28 13:56:45 +02:00
commit e391d5c753

View file

@ -188,9 +188,18 @@ class NetworkPrinterOutputDevice(PrinterOutputDevice):
else:
self._updatePrinterType("unknown")
Application.getInstance().getOutputDeviceManager().outputDevicesChanged.connect(self._onOutputDevicesChanged)
def _onNetworkAccesibleChanged(self, accessible):
Logger.log("d", "Network accessible state changed to: %s", accessible)
## Triggered when the output device manager changes devices.
#
# This is how we can detect that our device is no longer active now.
def _onOutputDevicesChanged(self):
if self.getId() not in Application.getInstance().getOutputDeviceManager().getOutputDeviceIds():
self.stopCamera()
def _onAuthenticationTimer(self):
self._authentication_counter += 1
self._authentication_requested_message.setProgress(self._authentication_counter / self._max_authentication_counter * 100)