From 12dcc43baca449c2b62c9f2652451ca6b8ef37dd Mon Sep 17 00:00:00 2001 From: Jaime van Kessel Date: Wed, 29 Jun 2016 13:45:29 +0200 Subject: [PATCH] Added messages upon succesfull & not sucessfull pairing CURA-49 --- NetworkPrinterOutputDevice.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/NetworkPrinterOutputDevice.py b/NetworkPrinterOutputDevice.py index 0b8fe607e5..f62fc6df5a 100644 --- a/NetworkPrinterOutputDevice.py +++ b/NetworkPrinterOutputDevice.py @@ -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.