From 49df834974ee725d0c452e46769ca9ebb8632932 Mon Sep 17 00:00:00 2001 From: ThomasV Date: Mon, 10 Oct 2016 15:56:47 +0200 Subject: [PATCH] kivy: add current word to suggestions, because some users don't see the space key --- gui/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 index 1f888c310..28d80d41b 100644 --- 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()