text gui: cap size of labels

This commit is contained in:
ThomasV 2015-03-31 22:07:32 +02:00
parent 8e65df3ae7
commit eaa91683da
1 changed files with 2 additions and 0 deletions

View File

@ -118,6 +118,8 @@ class ElectrumGui:
time_str = 'pending'
label, is_default_label = self.wallet.get_label(tx_hash)
if len(label) > 40:
label = label[0:37] + '...'
self.history.append( format_str%( time_str, label, format_satoshis(value, whitespaces=True), format_satoshis(balance, whitespaces=True) ) )