From c3349df724a70b84b36641fe69d3f7dc1a110978 Mon Sep 17 00:00:00 2001 From: ThomasV Date: Thu, 9 Mar 2017 16:55:32 +0100 Subject: [PATCH] fix kivy not updating units in history --- gui/kivy/uix/screens.py | 2 +- gui/kivy/uix/ui_screens/history.kv | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/gui/kivy/uix/screens.py b/gui/kivy/uix/screens.py index 2ad91786a..272d7e540 100644 --- a/gui/kivy/uix/screens.py +++ b/gui/kivy/uix/screens.py @@ -144,7 +144,7 @@ class HistoryScreen(CScreen): ri.date = status_str ri.message = label ri.value = value or 0 - ri.value_known = value is not None + ri.amount = self.app.format_amount(value, True) if value is not None else '--' ri.confirmations = conf if self.app.fiat_unit and date: rate = self.app.fx.history_rate(date) diff --git a/gui/kivy/uix/ui_screens/history.kv b/gui/kivy/uix/ui_screens/history.kv index 8c4a29dd9..0d9dfb379 100644 --- a/gui/kivy/uix/ui_screens/history.kv +++ b/gui/kivy/uix/ui_screens/history.kv @@ -20,8 +20,7 @@ icon: 'atlas://gui/kivy/theming/light/important' message: '' value: 0 - value_known: True - amount: app.format_amount(self.value, True) if self.value_known else '--' + amount: '--' amount_color: '#FF6657' if self.value < 0 else '#2EA442' confirmations: 0 date: ''