Browse Source

qt 2fa: show different status-bar icon for "2fa disabled" wallet

related: https://github.com/spesmilo/electrum/issues/8018
patch-4
SomberNight 2 years ago
parent
commit
4b8790c919
No known key found for this signature in database GPG Key ID: B33B5F232C6271E9
  1. BIN
      electrum/gui/icons/trustedcoin-status-disabled.png
  2. 5
      electrum/plugins/trustedcoin/qt.py

BIN
electrum/gui/icons/trustedcoin-status-disabled.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

5
electrum/plugins/trustedcoin/qt.py

@ -99,10 +99,11 @@ class Plugin(TrustedCoinPlugin):
_('Therefore, two-factor authentication is disabled.')
])
action = lambda: window.show_message(msg)
icon = read_QIcon("trustedcoin-status-disabled.png")
else:
action = partial(self.settings_dialog, window)
button = StatusBarButton(read_QIcon("trustedcoin-status.png"),
_("TrustedCoin"), action)
icon = read_QIcon("trustedcoin-status.png")
button = StatusBarButton(icon, _("TrustedCoin"), action)
window.statusBar().addPermanentWidget(button)
self.start_request_thread(window.wallet)

Loading…
Cancel
Save