1
0

qt wizard: fix offline 2fa wallet creation in some cases

fixes https://github.com/spesmilo/electrum/issues/9037
This commit is contained in:
SomberNight
2024-05-28 15:04:22 +00:00
parent e8a9e45291
commit 7827be17d1
4 changed files with 6 additions and 2 deletions

View File

@@ -489,7 +489,7 @@ class WCShowConfirmOTP(WizardComponent):
if self.wizard.trustedcoin_qhelper.otpSecret:
self.secretlabel.setText(self.wizard.trustedcoin_qhelper.otpSecret)
uri = 'otpauth://totp/Electrum 2FA %s?secret=%s&digits=6' % (
self.wizard_data['wallet_name'], self.wizard.trustedcoin_qhelper.otpSecret)
os.path.basename(self.wizard_data['wallet_name']), self.wizard.trustedcoin_qhelper.otpSecret)
self.qr.setData(uri)
def on_busy_changed(self):