qml: follow-up fe540200a9
This commit is contained in:
@@ -134,6 +134,10 @@ ElDialog {
|
|||||||
onNeedsPasswordChanged: {
|
onNeedsPasswordChanged: {
|
||||||
notice.visible = needsPassword
|
notice.visible = needsPassword
|
||||||
}
|
}
|
||||||
|
onWalletOpenProblem: {
|
||||||
|
openwalletdialog.close()
|
||||||
|
Daemon.onWalletOpenProblem(error)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Component.onCompleted: {
|
Component.onCompleted: {
|
||||||
|
|||||||
@@ -142,7 +142,7 @@ class QEDaemon(AuthMixin, QObject):
|
|||||||
|
|
||||||
self._walletdb = QEWalletDB()
|
self._walletdb = QEWalletDB()
|
||||||
self._walletdb.validPasswordChanged.connect(self.passwordValidityCheck)
|
self._walletdb.validPasswordChanged.connect(self.passwordValidityCheck)
|
||||||
self._walletdb.walletOpenProblem.connect(self.on_wallet_open_problem)
|
self._walletdb.walletOpenProblem.connect(self.onWalletOpenProblem)
|
||||||
|
|
||||||
@pyqtSlot()
|
@pyqtSlot()
|
||||||
def passwordValidityCheck(self):
|
def passwordValidityCheck(self):
|
||||||
@@ -150,7 +150,7 @@ class QEDaemon(AuthMixin, QObject):
|
|||||||
self.walletRequiresPassword.emit(self._name, self._path)
|
self.walletRequiresPassword.emit(self._name, self._path)
|
||||||
|
|
||||||
@pyqtSlot(str)
|
@pyqtSlot(str)
|
||||||
def on_wallet_open_problem(self, error):
|
def onWalletOpenProblem(self, error):
|
||||||
self.walletOpenError.emit(error)
|
self.walletOpenError.emit(error)
|
||||||
|
|
||||||
@pyqtSlot()
|
@pyqtSlot()
|
||||||
|
|||||||
Reference in New Issue
Block a user