electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit 49df834974ee725d0c452e46769ca9ebb8632932
parent e9f315ac6d1feedabde495b18e54618feebb9bee
Author: ThomasV <thomasv@electrum.org>
Date:   Mon, 10 Oct 2016 15:56:47 +0200

kivy: add current word to suggestions, because some users don't see the space key

Diffstat:
Mgui/kivy/uix/dialogs/installwizard.py | 15+++++++++------
1 file changed, 9 insertions(+), 6 deletions(-)

diff --git a/gui/kivy/uix/dialogs/installwizard.py b/gui/kivy/uix/dialogs/installwizard.py @@ -571,13 +571,16 @@ class RestoreSeedDialog(WizardDialog): enable_space = False self.ids.suggestions.clear_widgets() suggestions = [x for x in self.get_suggestions(last_word)] + + if last_word in suggestions: + b = WordButton(text=last_word) + self.ids.suggestions.add_widget(b) + enable_space = True + for w in suggestions: - if w == last_word: - enable_space = True - else: - if len(suggestions) < 10: - b = WordButton(text=w) - self.ids.suggestions.add_widget(b) + if w != last_word and len(suggestions) < 10: + b = WordButton(text=w) + self.ids.suggestions.add_widget(b) i = len(last_word) p = set()