code cleanup
This commit is contained in:
parent
3e014d05c1
commit
1face99346
|
@ -1756,10 +1756,7 @@ class ElectrumWindow(QMainWindow):
|
||||||
layout.setRowStretch(3,1)
|
layout.setRowStretch(3,1)
|
||||||
|
|
||||||
hbox = QHBoxLayout()
|
hbox = QHBoxLayout()
|
||||||
if sign:
|
b = QPushButton(_("Sign") if sign else _("Verify"))
|
||||||
b = QPushButton(_("Sign"))
|
|
||||||
elif not sign:
|
|
||||||
b = QPushButton(_("Verify"))
|
|
||||||
hbox.addWidget(b)
|
hbox.addWidget(b)
|
||||||
f = self.do_sign if sign else self.do_verify
|
f = self.do_sign if sign else self.do_verify
|
||||||
b.clicked.connect(lambda: f(address_e, message_e, signature_e))
|
b.clicked.connect(lambda: f(address_e, message_e, signature_e))
|
||||||
|
|
Loading…
Reference in New Issue