|
@ -1314,10 +1314,12 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, PrintError): |
|
|
if self.not_enough_funds: |
|
|
if self.not_enough_funds: |
|
|
amt_color, fee_color = ColorScheme.RED, ColorScheme.RED |
|
|
amt_color, fee_color = ColorScheme.RED, ColorScheme.RED |
|
|
feerate_color = ColorScheme.RED |
|
|
feerate_color = ColorScheme.RED |
|
|
text = _( "Not enough funds" ) |
|
|
text = _("Not enough funds") |
|
|
c, u, x = self.wallet.get_frozen_balance() |
|
|
c, u, x = self.wallet.get_frozen_balance() |
|
|
if c+u+x: |
|
|
if c+u+x: |
|
|
text += ' (' + self.format_amount(c+u+x).strip() + ' ' + self.base_unit() + ' ' +_("are frozen") + ')' |
|
|
text += " ({} {} {})".format( |
|
|
|
|
|
self.format_amount(c + u + x).strip(), self.base_unit(), _("are frozen") |
|
|
|
|
|
) |
|
|
|
|
|
|
|
|
# blue color denotes auto-filled values |
|
|
# blue color denotes auto-filled values |
|
|
elif self.fee_e.isModified(): |
|
|
elif self.fee_e.isModified(): |
|
@ -1850,7 +1852,7 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, PrintError): |
|
|
self.update_status() |
|
|
self.update_status() |
|
|
run_hook('do_clear', self) |
|
|
run_hook('do_clear', self) |
|
|
|
|
|
|
|
|
def set_frozen_state(self, addrs, freeze): |
|
|
def set_frozen_state(self, addrs, freeze: bool): |
|
|
self.wallet.set_frozen_state(addrs, freeze) |
|
|
self.wallet.set_frozen_state(addrs, freeze) |
|
|
self.address_list.update() |
|
|
self.address_list.update() |
|
|
self.utxo_list.update() |
|
|
self.utxo_list.update() |
|
|