Browse Source

qt: don't remove seed_warning for new seeds when ext option gets enabled

master
Sander van Grieken 1 year ago
parent
commit
df2a6f54d3
No known key found for this signature in database
GPG Key ID: 9BCF8209EA402EBA
  1. 12
      electrum/gui/qt/seed_dialog.py

12
electrum/gui/qt/seed_dialog.py

@ -94,6 +94,7 @@ class SeedWidget(QWidget):
self.options = options self.options = options
self.config = config self.config = config
self.msg = msg
if options: if options:
self.seed_types = [ self.seed_types = [
@ -223,7 +224,7 @@ class SeedWidget(QWidget):
def update_seed_warning(self): def update_seed_warning(self):
if self.seed_type == 'bip39': if self.seed_type == 'bip39':
msg = ' '.join([ message = ' '.join([
'<b>' + _('Warning') + ':</b> ', '<b>' + _('Warning') + ':</b> ',
_('BIP39 seeds can be imported in Electrum, so that users can access funds locked in other wallets.'), _('BIP39 seeds can be imported in Electrum, so that users can access funds locked in other wallets.'),
_('However, we do not generate BIP39 seeds, because they do not meet our safety standard.'), _('However, we do not generate BIP39 seeds, because they do not meet our safety standard.'),
@ -231,15 +232,18 @@ class SeedWidget(QWidget):
_('We do not guarantee that BIP39 imports will always be supported in Electrum.'), _('We do not guarantee that BIP39 imports will always be supported in Electrum.'),
]) ])
elif self.seed_type == 'slip39': elif self.seed_type == 'slip39':
msg = ' '.join([ message = ' '.join([
'<b>' + _('Warning') + ':</b> ', '<b>' + _('Warning') + ':</b> ',
_('SLIP39 seeds can be imported in Electrum, so that users can access funds locked in other wallets.'), _('SLIP39 seeds can be imported in Electrum, so that users can access funds locked in other wallets.'),
_('However, we do not generate SLIP39 seeds.'), _('However, we do not generate SLIP39 seeds.'),
]) ])
else: else:
msg = '' message = ''
self.seed_warning.setText(msg) if self.msg:
self.seed_warning.setText(seed_warning_msg(self.seed_e.text()))
else:
self.seed_warning.setText(message)
def initialize_completer(self): def initialize_completer(self):
if self.seed_type != 'slip39': if self.seed_type != 'slip39':

Loading…
Cancel
Save