Browse Source

small fixes

master
Sander van Grieken 2 years ago
parent
commit
3c232d70d1
  1. 4
      electrum/gui/qml/components/WalletMainView.qml
  2. 2
      electrum/plugins/trustedcoin/qt_common.py

4
electrum/gui/qml/components/WalletMainView.qml

@ -317,10 +317,6 @@ Item {
function onOtpRequested() {
console.log('OTP requested')
var dialog = otpDialog.createObject(mainView)
dialog.accepted.connect(function() {
console.log('accepted ' + dialog.otpauth)
Daemon.currentWallet.finish_otp(dialog.otpauth)
})
dialog.open()
}
function onBroadcastFailed(txid, code, message) {

2
electrum/plugins/trustedcoin/qt_common.py

@ -222,6 +222,8 @@ class QSignalObject(PluginQObject):
@pyqtSlot(str, int)
def checkOtp(self, short_id, otp):
assert type(otp) is int # make sure this doesn't fail subtly
def check_otp_task():
try:
self.plugin.logger.debug(f'check OTP, shortId={short_id}, otp={otp}')

Loading…
Cancel
Save