1
0

display 'low fee' in tx dialog

This commit is contained in:
ThomasV
2016-06-15 13:31:24 +02:00
parent 9cc76bc969
commit b6393cbdf2
3 changed files with 5 additions and 2 deletions

View File

@@ -112,7 +112,7 @@ class TxDialog(Factory.Popup):
if timestamp:
self.date_str = datetime.fromtimestamp(timestamp).isoformat(' ')[:-3]
elif exp_n:
self.date_str = _('Within %d blocks') % exp_n
self.date_str = _('Within %d blocks') % exp_n if exp_n > 0 else _('unknown (low fee)')
else:
self.date_str = ''

View File

@@ -203,7 +203,8 @@ class TxDialog(QDialog, MessageBoxMixin):
self.date_label.setText(_("Date: %s")%time_str)
self.date_label.show()
elif exp_n:
self.date_label.setText(_('Expected confirmation time: %d blocks'%(exp_n)))
text = '%d blocks'%(exp_n) if exp_n > 0 else _('unknown (low fee)')
self.date_label.setText(_('Expected confirmation time') + ': ' + text)
self.date_label.show()
else:
self.date_label.hide()