1
0
This commit is contained in:
Sander van Grieken
2023-02-28 14:11:52 +01:00
parent fe540200a9
commit d59e687cdb
2 changed files with 6 additions and 2 deletions

View File

@@ -134,6 +134,10 @@ ElDialog {
onNeedsPasswordChanged: {
notice.visible = needsPassword
}
onWalletOpenProblem: {
openwalletdialog.close()
Daemon.onWalletOpenProblem(error)
}
}
Component.onCompleted: {

View File

@@ -142,7 +142,7 @@ class QEDaemon(AuthMixin, QObject):
self._walletdb = QEWalletDB()
self._walletdb.validPasswordChanged.connect(self.passwordValidityCheck)
self._walletdb.walletOpenProblem.connect(self.on_wallet_open_problem)
self._walletdb.walletOpenProblem.connect(self.onWalletOpenProblem)
@pyqtSlot()
def passwordValidityCheck(self):
@@ -150,7 +150,7 @@ class QEDaemon(AuthMixin, QObject):
self.walletRequiresPassword.emit(self._name, self._path)
@pyqtSlot(str)
def on_wallet_open_problem(self, error):
def onWalletOpenProblem(self, error):
self.walletOpenError.emit(error)
@pyqtSlot()