1
0
This commit is contained in:
Sander van Grieken
2022-03-16 22:37:02 +01:00
parent 4680521d07
commit 45f50d3078
2 changed files with 3 additions and 7 deletions

View File

@@ -1,3 +1,4 @@
import QtQuick 2.6
import QtQuick.Layouts 1.0
import QtQuick.Controls 2.1
@@ -6,7 +7,7 @@ WizardComponent {
onAccept: {
wizard_data['password'] = password1.text
wizard_data['encrypt'] = doencrypt.checked
wizard_data['encrypt'] = password1.text != ''
}
GridLayout {
@@ -20,10 +21,5 @@ WizardComponent {
id: password2
echoMode: TextInput.Password
}
CheckBox {
id: doencrypt
enabled: password1.text !== ''
text: qsTr('Encrypt wallet')
}
}
}

View File

@@ -107,7 +107,7 @@ class QEDaemon(QObject):
try:
storage = WalletStorage(self._path)
if not storage.file_exists():
self.walletOpenError.emit(qsTr('File not found'))
self.walletOpenError.emit('File not found')
return
except StorageReadWriteError as e:
self.walletOpenError.emit('Storage read/write error')