1
0

wizard: keepkey scope pin lineedit to instance

This commit is contained in:
Sander van Grieken
2023-09-18 22:50:33 +02:00
parent 22d3a5edbb
commit 81089a1ef9

View File

@@ -276,12 +276,12 @@ class KeepkeyInitLayout(QVBoxLayout):
self.addWidget(QLabel(msg))
self.addWidget(self.text_e)
pin = QLineEdit()
pin.setValidator(QRegExpValidator(QRegExp('[1-9]{0,9}')))
pin.setMaximumWidth(100)
self.pin = QLineEdit()
self.pin.setValidator(QRegExpValidator(QRegExp('[1-9]{0,9}')))
self.pin.setMaximumWidth(100)
hbox_pin = QHBoxLayout()
hbox_pin.addWidget(QLabel(_("Enter your PIN (digits 1-9):")))
hbox_pin.addWidget(pin)
hbox_pin.addWidget(self.pin)
hbox_pin.addStretch(1)
if method in [TIM_NEW, TIM_RECOVER]: