1
0

remove thousand separator when copying numbers to clipboard

from contextual menus
This commit is contained in:
Thomas
2023-06-11 23:01:53 +02:00
parent 3ab47e1c45
commit cdab59f620
4 changed files with 25 additions and 5 deletions

View File

@@ -314,7 +314,7 @@ class TxInOutWidget(QWidget):
copy_list += [(_("Copy Address"), lambda: self.main_window.do_copy(addr))]
txin_value = self.wallet.adb.get_txin_value(txin)
if txin_value:
value_str = self.main_window.format_amount(txin_value)
value_str = self.main_window.format_amount(txin_value, ignore_thousands_sep=True)
copy_list += [(_("Copy Amount"), lambda: self.main_window.do_copy(value_str))]
for item in show_list:
@@ -356,7 +356,7 @@ class TxInOutWidget(QWidget):
show_list += [(_("Address Details"), lambda: self.main_window.show_address(addr, parent=self))]
copy_list += [(_("Copy Address"), lambda: self.main_window.do_copy(addr))]
txout_value = self.tx.outputs()[txout_idx].value
value_str = self.main_window.format_amount(txout_value)
value_str = self.main_window.format_amount(txout_value, ignore_thousands_sep=True)
copy_list += [(_("Copy Amount"), lambda: self.main_window.do_copy(value_str))]
for item in show_list: