Skip to content

Commit

Permalink
Save Schnorr sigil in instance
Browse files Browse the repository at this point in the history
  • Loading branch information
gasull committed Apr 12, 2021
1 parent 95fe9a4 commit cec7930
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions electroncash_gui/qt/transaction_dialog.py
Expand Up @@ -202,6 +202,8 @@ def open_be_url(link):
parent.labels_updated_signal.connect(self.update_tx_if_in_wallet)
parent.network_signal.connect(self.got_verified_tx)

self._schnorr_sigil = TxDialog._get_schnorr_sigil()

@classmethod
def _make_freeze_button_text(cls, op: FreezeOp = FreezeOp.Freeze, num_coins: int = 0) -> str:
if op == cls.FreezeOp.Freeze:
Expand Down Expand Up @@ -539,9 +541,8 @@ def add_io(self, vbox):
# it makes no sense to enable this checkbox if the network is offline
chk.setHidden(True)

schnorr_sigil = TxDialog._get_schnorr_sigil()
self.schnorr_label = QLabel(
_('{} = Schnorr signed').format(schnorr_sigil)
_('{} = Schnorr signed').format(self._schnorr_sigil)
)
self.schnorr_label.setAlignment(Qt.AlignVCenter | Qt.AlignRight)
f = self.schnorr_label.font()
Expand Down Expand Up @@ -668,8 +669,7 @@ def format_amount(amt):
cursor.insertText(format_amount(x['value']), ext)
if self.tx.is_schnorr_signed(i):
# Schnorr
schnorr_sigil = TxDialog._get_schnorr_sigil()
cursor.insertText(' {}'.format(schnorr_sigil), ext)
cursor.insertText(' {}'.format(self._schnorr_sigil), ext)
has_schnorr = True
cursor.insertBlock()

Expand Down

0 comments on commit cec7930

Please sign in to comment.