Added messages upon succesfull & not sucessfull pairing

CURA-49
This commit is contained in:
Jaime van Kessel 2016-06-29 13:45:29 +02:00
parent 57ea4f0dc8
commit 12dcc43bac

View file

@ -143,9 +143,12 @@ class NetworkPrinterOutputDevice(PrinterOutputDevice):
self._authentication_timer.start() # Start timer so auth will fail after a while.
elif auth_state == AuthState.Authenticated:
self._authentication_requested_message.hide()
authentication_succeeded_message = Message(i18n_catalog.i18nc("@info:status", "Printer was successfully paired with Cura"))
authentication_succeeded_message.show()
elif auth_state == AuthState.AuthenticationDenied:
self._authentication_requested_message.hide()
authentication_failed_message = Message(i18n_catalog.i18nc("@info:status", "Pairing request failed. This can be either due to a timeout or the printer refused the request."))
authentication_failed_message.show()
self._authentication_state = auth_state
## Request data from the connected device.