mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-09 07:56:22 -06:00
Added messages upon succesfull & not sucessfull pairing
CURA-49
This commit is contained in:
parent
57ea4f0dc8
commit
12dcc43bac
1 changed files with 4 additions and 1 deletions
|
@ -143,9 +143,12 @@ class NetworkPrinterOutputDevice(PrinterOutputDevice):
|
||||||
self._authentication_timer.start() # Start timer so auth will fail after a while.
|
self._authentication_timer.start() # Start timer so auth will fail after a while.
|
||||||
elif auth_state == AuthState.Authenticated:
|
elif auth_state == AuthState.Authenticated:
|
||||||
self._authentication_requested_message.hide()
|
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:
|
elif auth_state == AuthState.AuthenticationDenied:
|
||||||
self._authentication_requested_message.hide()
|
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
|
self._authentication_state = auth_state
|
||||||
|
|
||||||
## Request data from the connected device.
|
## Request data from the connected device.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue