1
0

qml: fix regression caused by ee42e09387

in qml, we need the password in-memory as the auth wrapper (@auth_protect) does not
pass the password to the wrapped fn.
This commit is contained in:
Sander van Grieken
2025-01-17 12:15:24 +01:00
parent d25aca7a53
commit 010b153ab2

View File

@@ -251,8 +251,8 @@ class QEDaemon(AuthMixin, QObject):
assert wallet is not None
self._current_wallet = QEWallet.getInstanceFor(wallet)
self.availableWallets.updateWallet(self._path)
if wallet.requires_unlock():
wallet.unlock(password or None)
wallet.unlock(password or None) # not conditional on wallet.requires_unlock in qml, as
# the auth wrapper doesn't pass the entered password, but instead we rely on the password in memory
self._loading = False
self.loadingChanged.emit()
self.walletLoaded.emit(self._name, self._path)