From a921f5becf763ac8eea5eca4ec7c87aa75b2223e Mon Sep 17 00:00:00 2001 From: ThomasV Date: Thu, 9 Mar 2017 14:47:31 +0100 Subject: [PATCH] kivy labels plugin: use Clock --- gui/kivy/main_window.py | 3 +++ plugins/labels/kivy.py | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/gui/kivy/main_window.py b/gui/kivy/main_window.py index 97dcfbb0..ee1700e8 100644 --- a/gui/kivy/main_window.py +++ b/gui/kivy/main_window.py @@ -254,6 +254,9 @@ class ElectrumWindow(App): # show error self.show_error("Unable to decode QR data") + def update_history_tab(self): + Clock.schedule_once(lambda dt: self.update_tab('history')) + def update_tab(self, name): s = getattr(self, name + '_screen', None) if s: diff --git a/plugins/labels/kivy.py b/plugins/labels/kivy.py index 8cab7db3..2bdc7889 100644 --- a/plugins/labels/kivy.py +++ b/plugins/labels/kivy.py @@ -10,5 +10,5 @@ class Plugin(LabelsPlugin): def on_pulled(self, wallet): self.print_error('on pulled') - self.window.update_tab('history') + self.window.update_history_tab()