More stupid PyQt enums

This commit is contained in:
Kovid Goyal 2020-12-20 10:55:05 +05:30
parent 430991d56b
commit b984d72958
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -174,8 +174,8 @@ class SendEmail(QWidget, Ui_Form):
button.clicked.connect(partial(self.create_service_relay, x))
self.relay_show_password.stateChanged.connect(
lambda state : self.relay_password.setEchoMode(
self.relay_password.Password if
state == 0 else self.relay_password.Normal))
QLineEdit.EchoMode.Password if
state == 0 else QLineEdit.EchoMode.Normal))
self.test_email_button.clicked.connect(self.test_email)
def changed(self, *args):