mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-05-01 08:14:22 +08:00
Apply the @override decorator
CL-228
This commit is contained in:
parent
2ae5334dde
commit
b5b3f47e4d
@ -13,6 +13,7 @@ from PyQt5.QtGui import QDesktopServices
|
||||
from PyQt5.QtNetwork import QNetworkAccessManager, QNetworkReply
|
||||
from PyQt5.QtQml import QQmlComponent, QQmlContext
|
||||
from UM.Application import Application
|
||||
from UM.Decorators import override
|
||||
from UM.Logger import Logger
|
||||
from UM.Message import Message
|
||||
from UM.OutputDevice import OutputDeviceError
|
||||
@ -114,15 +115,19 @@ class NetworkClusterPrinterOutputDevice(NetworkPrinterOutputDevice.NetworkPrinte
|
||||
|
||||
## No authentication, so requestAuthentication should do exactly nothing
|
||||
@pyqtSlot()
|
||||
@override(NetworkPrinterOutputDevice)
|
||||
def requestAuthentication(self, message_id = None, action_id = "Retry"):
|
||||
Logger.log("d", "requestAuthentication for Cura Connect - nothing to be done")
|
||||
pass # Cura Connect doesn't do any authorization
|
||||
|
||||
@override(NetworkPrinterOutputDevice)
|
||||
def setAuthenticationState(self, auth_state):
|
||||
self._authentication_state = NetworkPrinterOutputDevice.AuthState.Authenticated # The printer is always authenticated
|
||||
|
||||
@override(NetworkPrinterOutputDevice)
|
||||
def _verifyAuthentication(self):
|
||||
pass
|
||||
|
||||
@override(NetworkPrinterOutputDevice)
|
||||
def _checkAuthentication(self):
|
||||
Logger.log("d", "_checkAuthentication Cura Connect - nothing to be done")
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user