tkivy: fix tx dialog message - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit 2b5117ab3dfa8213f303f80771ca19afe7249ca9 DIR parent 219ea6588bb20e24d88c9406c892d57293afb951 HTML Author: ThomasV <thomasv@electrum.org> Date: Mon, 5 Mar 2018 09:37:25 +0100 kivy: fix tx dialog message Diffstat: M gui/kivy/uix/dialogs/tx_dialog.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) --- DIR diff --git a/gui/kivy/uix/dialogs/tx_dialog.py b/gui/kivy/uix/dialogs/tx_dialog.py t@@ -20,6 +20,7 @@ Builder.load_string(''' can_rbf: False fee_str: '' date_str: '' + date_label:'' amount_str: '' tx_hash: '' status_str: '' t@@ -46,7 +47,7 @@ Builder.load_string(''' text: _('Description') if root.description else '' value: root.description BoxLabel: - text: _('Date') if root.date_str else '' + text: root.date_label value: root.date_str BoxLabel: text: _('Amount sent') if root.is_mine else _('Amount received') t@@ -110,10 +111,13 @@ class TxDialog(Factory.Popup): tx_hash, self.status_str, self.description, self.can_broadcast, self.can_rbf, amount, fee, height, conf, timestamp, exp_n = self.wallet.get_tx_info(self.tx) self.tx_hash = tx_hash or '' if timestamp: + self.date_label = _('Date') self.date_str = datetime.fromtimestamp(timestamp).isoformat(' ')[:-3] elif exp_n: - self.date_str = _('Within {} blocks').format(exp_n) if exp_n > 0 else _('unknown (low fee)') + self.date_label = _('Mempool depth') + self.date_str = _('{} from tip').format('%.2f MB'%(exp_n/1000000)) else: + self.date_label = '' self.date_str = '' if amount is None: