Browse Source

qt seed_dialog: warn when trying to restore standard seed as 2FA wallet

closes https://github.com/spesmilo/electrum/issues/7837
patch-4
SomberNight 3 years ago
parent
commit
450476dcb6
No known key found for this signature in database GPG Key ID: B33B5F232C6271E9
  1. 9
      electrum/gui/qt/seed_dialog.py

9
electrum/gui/qt/seed_dialog.py

@ -281,6 +281,15 @@ class SeedLayout(QVBoxLayout):
else:
t = seed_type(s)
label = _('Seed Type') + ': ' + t if t else ''
if t and not b: # electrum seed, but does not conform to dialog rules
msg = ' '.join([
'<b>' + _('Warning') + ':</b> ',
_("Looks like you have entered a valid seed of type '{}' but this dialog does not support such seeds.").format(t),
_("If unsure, try restoring as '{}'.").format(_("Standard wallet")),
])
self.seed_warning.setText(msg)
else:
self.seed_warning.setText("")
self.seed_type_label.setText(label)
self.parent.next_button.setEnabled(b)

Loading…
Cancel
Save