Skip to content

Commit

Permalink
tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
Electrum-RVN-SIG committed Oct 25, 2021
1 parent f409f2c commit 43ccd10
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion electrum/gui/qt/main_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ def add_optional_tab(tabs, tab, icon, description, name, default=False):
if self.config.get('show_{}_tab'.format(name), default):
tabs.addTab(tab, icon, description.replace("&", ""))

add_optional_tab(tabs, self.messages_tab, read_QIcon("tab_message.png"), _("Messages"), "messages", True)
add_optional_tab(tabs, self.messages_tab, read_QIcon("tab_message.png"), _("Messages"), "messages")
add_optional_tab(tabs, self.addresses_tab, read_QIcon("tab_addresses.png"), _("&Addresses"), "addresses")
# add_optional_tab(tabs, self.channels_tab, read_QIcon("lightning.png"), _("Channels"), "channels")
add_optional_tab(tabs, self.utxo_tab, read_QIcon("tab_coins.png"), _("Co&ins"), "utxo")
Expand Down
26 changes: 13 additions & 13 deletions electrum/gui/qt/seed_dialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,24 +214,24 @@ def on_edit(self, *, from_click=False):
s = ' '.join(self.get_seed_words())
b = self.is_seed(s)

is_checksum = False
is_wordlist = False
if self.full_check:
is_checksum = False
is_wordlist = False

from electrum.keystore import bip39_is_checksum_valid
from electrum.mnemonic import Wordlist, filenames
from electrum.keystore import bip39_is_checksum_valid
from electrum.mnemonic import Wordlist, filenames

lang = ''
for type, file in filenames.items():
word_list = Wordlist.from_file(file)
is_checksum, is_wordlist = bip39_is_checksum_valid(s, wordlist=word_list)
if is_wordlist:
lang = type
break
lang = ''
for type, file in filenames.items():
word_list = Wordlist.from_file(file)
is_checksum, is_wordlist = bip39_is_checksum_valid(s, wordlist=word_list)
if is_wordlist:
lang = type
break

if self.full_check:
if self.seed_type == 'bip39':
status = ('checksum: ' + ('ok' if is_checksum else 'failed')) if is_wordlist else 'unknown wordlist'
label = 'BIP39 - ' + lang + ' (%s)'%status
label = 'BIP39 - ' + lang + ' (%s)' % status
if lang and lang != self.lang:
if lang == 'en':
bip39_english_list = Mnemonic('en').wordlist
Expand Down

0 comments on commit 43ccd10

Please sign in to comment.