XMR compat: minor display fixes
This commit is contained in:
parent
3ff5e532a6
commit
e7d8e8993b
2 changed files with 8 additions and 7 deletions
|
|
@ -42,10 +42,11 @@ class Completed(Base, TxCompleted):
|
|||
from ....tx.info import TxInfo
|
||||
class info_cls(TxInfo):
|
||||
def format(info_self, *args, **kwargs):
|
||||
body = self.compat_tx.get_info(full_address=True, indent=' ', is_swap=self.is_swap)
|
||||
if self.compat_data or self.raw_compat_data:
|
||||
swap_subhdr = ''.join(info_self.gen_swap_subhdr()) + '\n' if self.is_swap else ''
|
||||
return cyan(self.data_desc.upper()) + '\n' + swap_subhdr + body
|
||||
else:
|
||||
return body
|
||||
return (
|
||||
cyan(self.data_desc.upper())
|
||||
+ '\n'
|
||||
+ ((''.join(info_self.gen_swap_subhdr()) + '\n')
|
||||
if (self.compat_data or self.raw_compat_data) and self.is_swap
|
||||
else '')
|
||||
+ self.compat_tx.get_info(full_address=True, indent=' ', is_swap=self.is_swap))
|
||||
return info_cls(self.cfg, self)
|
||||
|
|
|
|||
|
|
@ -512,7 +512,7 @@ class New(Base):
|
|||
if not (self.is_bump or self.cfg.inputs):
|
||||
await self.twuo.view_filter_and_sort()
|
||||
|
||||
if not self.is_bump:
|
||||
if not (self.is_bump or self.is_compat):
|
||||
self.twuo.display_total()
|
||||
|
||||
if do_info:
|
||||
|
|
|
|||
Loading…
Reference in a new issue