1
0

Merge branch 'master' of github.com:spesmilo/electrum

This commit is contained in:
ThomasV
2025-01-17 14:43:15 +01:00
3 changed files with 5 additions and 5 deletions

View File

@@ -485,7 +485,7 @@ Item {
var dialog = app.messageDialog.createObject(app, {
title: qsTr('Error'),
iconSource: Qt.resolvedUrl('../../icons/warning.png'),
text: message
text: message ? message : qsTr('Payment failed')
})
dialog.open()
}

View File

@@ -613,10 +613,10 @@ ApplicationWindow
}
// TODO: add to notification queue instead of barging through
function onPaymentSucceeded(key) {
notificationPopup.show(Daemon.currentWallet.name, qsTr('Payment Succeeded'))
notificationPopup.show(Daemon.currentWallet.name, qsTr('Payment succeeded'))
}
function onPaymentFailed(key, reason) {
notificationPopup.show(Daemon.currentWallet.name, qsTr('Payment Failed') + ': ' + reason)
notificationPopup.show(Daemon.currentWallet.name, qsTr('Payment failed') + ': ' + reason)
}
}

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)