mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 11:25:57 +08:00
Added logging about network accessible state
CURA-1851
This commit is contained in:
parent
42bbf2b4c8
commit
0a08707922
@ -88,6 +88,7 @@ class NetworkPrinterOutputDevice(PrinterOutputDevice):
|
||||
self._manager = QNetworkAccessManager()
|
||||
self._manager.finished.connect(self._onFinished)
|
||||
self._manager.authenticationRequired.connect(self._onAuthenticationRequired)
|
||||
self._manager.networkAccessibleChanged.connect(self._onNetworkAccesibleChanged) # for debug purposes
|
||||
|
||||
self._post_request = None
|
||||
self._post_reply = None
|
||||
@ -142,6 +143,9 @@ class NetworkPrinterOutputDevice(PrinterOutputDevice):
|
||||
|
||||
self._last_command = ""
|
||||
|
||||
def _onNetworkAccesibleChanged(self, accessible):
|
||||
Logger.log("d", "Network accessible state changed to: %s", accessible)
|
||||
|
||||
def _onAuthenticationTimer(self):
|
||||
self._authentication_counter += 1
|
||||
self._authentication_requested_message.setProgress(self._authentication_counter / self._max_authentication_counter * 100)
|
||||
|
Loading…
x
Reference in New Issue
Block a user