mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-15 20:15:54 +08:00
Added messages upon succesfull & not sucessfull pairing
CURA-49
This commit is contained in:
parent
57ea4f0dc8
commit
12dcc43bac
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user